No description
Find a file
2023-04-25 20:25:43 +02:00
src Reformat the code and upgrade dependency 2023-04-25 20:25:43 +02:00
.gitignore initialization of the project with cargo and addition of a README.md and LICENSE file 2021-01-08 12:47:52 +01:00
Cargo.toml Reformat the code and upgrade dependency 2023-04-25 20:25:43 +02:00
LICENSE initialization of the project with cargo and addition of a README.md and LICENSE file 2021-01-08 12:47:52 +01:00
README.md Update README.md 2022-06-23 22:59:49 +02:00

Connect four

What is it ?

This is simply my version of connect four, for the moment the only way to win is to line up 4 tokens vertically or horizontally you can win by lining up 4 tokens in a row, column or diagonal.

Build

You can build the project by running the following command:

cargo build --release

Usage

You can run the game by running the following command:

cargo run -- -h # to see the help

Roadmap

  • Check if the tray is full.
  • Check if there is a winner vertically and horizontally.
  • Check if there is a winner diagonally.
  • Be able to start a game where the computer plays against itself with random moves.
  • Be able to launch a certain number of games and collect in a table the number of victories corresponding to each player and the equality.
  • Be able to parallelize the launch of parts in threads.
  • To be able to play a move by entering only the column.
  • Being able to play a game with someone else.
  • To be able to play a game against the computer (but just random hits).

License

MIT