Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 583 Bytes

README.md

File metadata and controls

15 lines (12 loc) · 583 Bytes
            "README for TICTACTOE"

This is a README file for the tictactoe.pl prolog program. This file is also referred in the PDF given with the code.

Here are the instructions to run the program:-

  1. Open your terminal.
  2. cd into the directory where the code ('tictactoe.pl') is present.
  3. $swipl (for running the code)
  4. ?- [tictactoe]. (for compiling the code)
  5. ?- play. (starting the game)
  6. |: o. (choosing naught to be the second player)
  7. |: 3. (for further moves, just type in the position number ending with a period)