Python Forum
Coding Python to make a game similar to Tic-Tac-Toe
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Coding Python to make a game similar to Tic-Tac-Toe
#4
This sounds a bit different, not quite a typical tic tac toe. The strategy I would choose would be two steps:
1. If the tile that would make your sum 15 is available, pick it and win.
2. Otherwise, pick the tile that would block your opponent from getting 15.
Example, opponent picks 9. You pick 6. Opponent picks 4 (total=13). You pick 2. Opponent picks 5 and is now over 15. You have 8, so you pick 7 and win.
Reply


Messages In This Thread
RE: Coding Python to make a game similar to Tic-Tac-Toe - by jefsummers - Oct-23-2019, 03:29 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Assignment to make a multiple choice game blacklight 1 2,233 Aug-14-2020, 02:37 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020