Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] Add VS-AI mode in Tic-tac-toe #14

Closed
IndieCoderMM opened this issue Jan 15, 2025 · 2 comments
Closed

[FEAT] Add VS-AI mode in Tic-tac-toe #14

IndieCoderMM opened this issue Jan 15, 2025 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@IndieCoderMM
Copy link
Contributor

It would be great to be able to play with AI in the tic-tac-toe game.

Describe the solution you'd like
I suggest to add VS-AI mode:

  • After selecting tic-tac-toe, there will be two modes: 1. 2Player 2. Vs-AI
  • We can use mini-max or MCTS to create a simple AI.
  • AI should be winnable. (These algorithms can solve 3x3 boards. But it will not be fun to play)
  • Optional Start a new match after every game and keep track of scores.

Describe alternatives you've considered

  • Make a random move instead of implementing an AI (easier, but not much fun)

Additional context

  • I'd love to implement this by myself. But it might take some time before I get to it.
@IndieCoderMM IndieCoderMM added the enhancement New feature or request label Jan 15, 2025
@Kaamkiya
Copy link
Owner

Interesting. Sure, go ahead.

I just suggest one difference: instead of allowing the user to select tic tac toe and then 2 player or AI, add a single option to the main menu labeled tic-tac-toe (vs bot).

Then you can create a new function in tic-tac-toe called RunAI which runs tic-tac-toe against a bot.

@Kaamkiya
Copy link
Owner

Closed by #15.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants