Python 2.7.1 (r271:86832, Mar 20 2011, 15:40:35)
[GCC 4.4.1] on linux2
    !h - for getting help
    !l - for getting learn
                    
>>> Console open console max
Stop
Loading...

5 in row

The original name is Gumoku

The point of the game is to get five stones in a
row either horizontal, or vertical or diagonal on
a square playing field with the size limited to
19.
Note that the whole field is not always
accessible for you during the game, as well
as a game may end in a draw when the entire
board is filled with stones at the time, as none
of the players will have five stones in a row.
The point of the game is to get five stones in a row either horizontal, or vertical or diagonal on a square playing field with the size limited to 19.Note that the whole field is not alwaysaccessible for you during the game, as wellas a game may end in a draw when the entireboard is filled with stones at the time, as noneof the players will have five stones in a row.

 

Resolving of the following tasks can help: The biggest union of points, Put the number

Here you can find more information: Wikipedia, Renju International Federation

Before the start playing we execute initial_checkio, and tell to your ENV the number of your player - 1 or 2.

initial_checkio({'num':1}) # you goes first

 

Function checkio gets input values as a dict with the following keys:

checkio({
        'step':[4,5], #coordinates of your opponent step
        'map':[[...],[...],...,[...]] #array of array of coordinates
    })

6 comments...

bryukh Tester 1898 's comment has been removed by admin. #  
oduvan Tester 891 's comment has been removed by author. #  
Andrea
Rank13

  #
Should the arena board be updated or am I missing something about how it should work?
oduvan
 
Followers count8 Rank891

  #
for better understanding - you can "download & play", and try to play from you local computer and then publish your solution on checkio.org
Andrea
Rank13

  #
I already did, and I posted a solution as well.
What I don't understand is that if the score board, as this is a competition, should be updated awarding the strongest program with the first position. My solution, at the moment, beats the first and the second solution.
oduvan
 
Followers count8 Rank891

  #
No. Score Board, which calls Arena, will change after competition will start. I think it can be very soon.

And your solution doesn't beat my

Only authorized users can reply. Login

Facebook Linkedin Twitter GoogleGroups email and gtalk FeedBurner | Help | How to help | Contact us | About us | Get Widget | Live help