Skip to content
Snippets Groups Projects
  1. Dec 27, 2021
    • dario.genga's avatar
      Merge branch 'develop' into main · f026560e
      dario.genga authored
      f026560e
    • dario.genga's avatar
      Added how to run the program in the readme · 0d30299c
      dario.genga authored
      Usage: puissance4 <mode> <row> <col>
          mode  specifies the mode:
              1 = single player game (random),
              2 = single player game (AI),
              3 = two players game
      row   specifies the number of rows (>= 4)
      col   specifies the number of columns (>= 4)
      0d30299c
    • dario.genga's avatar
      Merge branch 'develop' into main · 62438e0e
      dario.genga authored
      62438e0e
    • dario.genga's avatar
      Refactor the code · 8016548c
      dario.genga authored
      - Created the search_optimal_action method to avoid duplicated code in
      the smart_play method.
      - Added a print_help method to help the user when using the program.
      - Simplified the main.c file in order to use only one method when
      playing instead of three.
      - Added some comments.
      - Performed various small adjustement for more code clarity.
      8016548c
    • dario.genga's avatar
      Add smart ai play · 28015cae
      dario.genga authored
      The program valid each tests, but it need some refactoring to improve
      the code quality.
      28015cae
    • dario.genga's avatar
      Do various changes to validate the tests · 74a4db72
      dario.genga authored
      - Improvement of the diagonal check.
      - Changed the text displayed to be the same than those in the tests.
      - Fixed an unknown char that was displayed at the second game display.
      74a4db72
    • dario.genga's avatar
      Add game support for program arguments · f7b71388
      dario.genga authored
      The game now must have arguments in order to be played.
      
      Also fixed the horizontal game check that wasn't working when the row
      was completed by the middle.
      f7b71388
  2. Dec 21, 2021
  3. Dec 14, 2021
Loading