Python Forum
Help in a Go game buttons
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help in a Go game buttons
#1
Hello, I have already asked this in an other thread and I'm sorry to create a new one but no one answers, so could you please help me?

My question is: I created a simplified Go game on Python where the board is represented by a 6x6 matrix and your stones by "1" and the enemy's by "-1" in it. The rule is simple, circle the enemy, the first one to lose a stone/group of stones loses the game.

I wanted to create a graphic interface with Tkinter but I know very few about this despite watching some tutorials which never helped me for what I want to know.
I put 25 buttons on the graphic interface (for a 5x5 game, not 6x6 but there is a reason) and when I click on one of those, I would like a circle representing my stone to appear, while the button disappears, plus, if possible, a "1" to appear in the matrix (corresponding of course at the same coordinates).
That will be more annoying with the enemy's turn for it's the computer.

That must sound easy for you but I don't know how to do it.

Thank you for helping me.
Reply


Messages In This Thread
Help in a Go game buttons - by notreallyapro - May-11-2018, 02:25 PM
RE: Help in a Go game buttons - by Larz60+ - May-11-2018, 03:50 PM
RE: Help in a Go game buttons - by notreallyapro - May-11-2018, 04:14 PM
RE: Help in a Go game buttons - by woooee - May-11-2018, 05:32 PM
RE: Help in a Go game buttons - by notreallyapro - May-11-2018, 07:58 PM
RE: Help in a Go game buttons - by notreallyapro - May-12-2018, 09:29 PM

Forum Jump:

User Panel Messages

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