Python Forum
Help with this game - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Game Development (https://python-forum.io/forum-11.html)
+--- Thread: Help with this game (/thread-6936.html)



Help with this game - GinQt - Dec-14-2017

I need help to build this game Pah Tum in Python :) You can read the rules on this link. Pah_tum


RE: Help with this game - j.crater - Dec-14-2017

I'm not sure how likely it is for some forum member to go study the rules of this game, so be prepared to be on your own in that regard.
As for the code, we are glad to help if you face some issues. But you will need to post runnable code (in Python code tags) and potential error messages (in error tags).


RE: Help with this game - buran - Dec-14-2017

Great! Looking forward to see your post in Completed Scripts section of the forum. :-)


RE: Help with this game - GinQt - Dec-14-2017

(Dec-14-2017, 12:44 PM)j.crater Wrote: I'm not sure how likely it is for some forum member to go study the rules of this game, so be prepared to be on your own in that regard.
As for the code, we are glad to help if you face some issues. But you will need to post runnable code (in Python code tags) and potential error messages (in error tags).

I don't know how to create blocked stones in the Board.

I have the code here:
    def blocker(self):

        add_list = [5,7,9,11,13]
        random_add = random.choice(add_list)
        for x in range(0, random_add):
            counter = 0
            while counter == 0:
                rang_a = random.randint(0, self.colums_count - 1)
                rang_b = random.randint(0, self.rows_count - 1)
                if self.board[rang_a][rang_b] == 0:
                    self.board[rang_a][rang_b] = 7
                    counter += 1
I set colums_count = 7 , rows_count = 7


RE: Help with this game - metulburr - Dec-14-2017

Quote:I don't know how to create blocked stones in the Board.
You add the python tags highlighted in green here by iether typing them out or by selecting the button python in the editor and pasting the code between the two tags


RE: Help with this game - GinQt - Dec-17-2017

a game