Python Forum
Adding a single player mode to my wxOthello game
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding a single player mode to my wxOthello game
#29
(Apr-30-2019, 11:35 PM)SheeppOSU Wrote:
AI's are like babies if you think about it. The bot u have here has to act based on specific things. It doesn't have any experience whatsoever.

That's why you can beat it so easily

Hope this helps

Quite right. My bot has no experience whatsoever. Nor can it gain experience. I just read a bunch of scholarly articles on the subject and discovered that even back in 1997, when a bot beat a Human world champion for the first time they were already using neural network based machine learning. I think it's reasonable to conclude that I'm not going to get anywhere using minimax. I've greatly underestimated the scale of this challenge and I foresee a great deal of research in my future. Unfortunately, your suggestion of implementing a different function for every possible game state would require 3^60 + 16 different functions. I would spend the rest of my life coding, fill up the hard drive of this computer with code and still never live to see my bot play a respectable game.

I'm thinking I'll use NEAT (NeuroEvolution of Augmenting Topologies) to create my bot. I'll have 64 input nodes for the 64 game spaces and two output nodes for an X and a Y coordinate. I'll need to read a lot of academic papers on the subject to get any more specific than that. I don't even know how I'm going to implement the scoring and training algorithms. One of the papers I looked at said something about the neural networks over-adapting when they train against themselves. I suppose I could solve this problem by introducing a gradient of mutation rates within the population but there are people who have already solved this problem. The bot on my phone plays a mean game and that thing probably handles a Human with kid gloves even on max difficulty. I could even vary the difficulty by saving neural networks at various stages of the training process and using a poorer performing neural network at lower difficulties and a better performer at a higher difficulty. I could even whip out the best performer, (which at the end of the training process might be capable of playing a perfect game) for the highest difficulty. It would make the highest difficulty setting a frustrating nightmare for anybody who tries it, but even being impossible to win against a bot that plays a perfect game, I could only imagine the rush of satisfaction when somebody draws a game against a level 100 bot!
Reply


Messages In This Thread
RE: Adding a single player mode to my wxOthello game - by keames - May-01-2019, 01:55 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyGame] adding mouse control to game flash77 6 481 Yesterday, 05:25 PM
Last Post: flash77
  get a game to run in full screen mode agencyclearly 1 360 May-12-2024, 11:23 AM
Last Post: menator01
  Creating a “Player” class, and then importing it into game onizuka 4 3,149 Sep-01-2020, 06:06 PM
Last Post: onizuka
  Adding an inventory and a combat system to a text based adventure game detkitten 2 6,983 Dec-17-2019, 03:40 AM
Last Post: detkitten
  Adding persistent multiple levels to game michael1789 2 2,469 Nov-16-2019, 01:15 AM
Last Post: michael1789
  Can a player play game created with Python without installing Python? hsunteik 3 5,390 Feb-23-2017, 10:44 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