Hello guest, if you read this it means you are not registered. Click here to register in a few simple steps, you will enjoy all features of our Forum.
Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with this game
#1
I need help to build this game Pah Tum in Python :) You can read the rules on this link. Pah_tum
Quote
#2
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).
metulburr and buran like this post
Quote
#3
Great! Looking forward to see your post in Completed Scripts section of the forum. :-)
Quote
#4
Photo 
(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
buran wrote Dec-14-2017, 01:20 PM:
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.
Quote
#5
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


Attached Files Thumbnail(s)
   
Quote
#6
a game
Quote

Top Page

Forum Jump:


Users browsing this thread: 1 Guest(s)