Skip to content
Snippets Groups Projects
Select Git revision
  • 70b5cbfb5bfa22be6f2d77bbd84f41ffb5af3bbb
  • master default protected
  • 1.1.1
  • 1.1
  • 1.0
5 results

one_armed_bandit.h

Blame
  • one_armed_bandit.h 258 B
    #ifndef ONE_ARM_H
    #define ONE_ARM_H
    
    
    #define OBJECT_NB 7
    #define WHEEL_NB 3
    
    typedef struct machine_a_sous{
      wheel* wheels;
      int player_wallet;
      int machine_wallet;
    } machine;
    
    int insert_coin();
    int set_wheel_speed(int index);
    int next_wheel();
    
    #endif