This is a simple Tic Tac Toe game implemented in Dart programming language. It includes a basic command-line interface for playing against an AI player that uses the minimax algorithm to choose its moves.
To play the game, run the following command in your terminal:
dart run tic_tac_toe.dart
dart run tic_tac_toe_ai.dart
dart run tic_tac_toe_ai_smart.dart
The game will ask you to choose a row and a column to place your marker (X or O) on the board. The rows and columns are numbered 1, 2, and 3. Once you've made your move, the AI player will automatically make its move.
The game will continue until either one player wins, the game ends in a tie, or you interrupt the program with Ctrl-C.
To run the program, you must have Dart SDK installed on your system. You can download and install the Dart SDK from the official website: https://dart.dev/get-dart
Once you have the Dart SDK installed, navigate to the project directory in your terminal and run the following command:
dart run tic_tac_toe.dart
dart run tic_tac_toe_ai.dart
dart run tic_tac_toe_ai_smart.dart