/thp-tictactoe

Version TicTacToe sans tuto

Primary LanguageRuby

TicTacToe

Project TicTacToe with THP by Paul Broussolle aka the minister of mixture

VOTRE ATTENTION SVP : Clique sur ce lien pour lancer mon code sans avoir à tout copier sur ton ordinateur

How to use ?

  1. Run the tic_tac_toe_game.rb file to play. Then add the first player, followed but the player 2.
  2. Move through the cases by typing the number of the case (from 1 to 9)
  3. BEAT HIM
  4. <3

How does it work ?

  • Creating an empty board
  • Get the numbers in inputs and the actual player
  • Re-draw while adding the token (X or 0)
  • Check if win thanks to the winning lines define earlier

To do list

  • Split the classes in several files
  • Do a gem and a bundle

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/paul00b/tic_tac_toe.