Find Jobs
Hire Freelancers

go game in python -- 2

min €36 EUR / hour

Cancelled
Posted almost 3 years ago

min €36 EUR / hour

The theme of this test is the game of go. The goal is to write a function that determines whether the stone at an x, y position on a goban is taken or not. Vocabulary: Goban: the board on which stones are placed to play Shape: a group of one or more adjacent stones of the same color (adjacent: stones that are left, right, top, bottom of each other, diagonals do not count) Freedom: empty space adjacent to a shape Reminder of the rules: The goban has an indefinite size There are two players and everyone plays a stone color: black or white The stones are laid one after the other each turn When a form has no more freedom it is taken The objective of the test is to write an is_taken function which takes in parameter x, y and which returns true if the stone with the position x, is taken there and false otherwise. To do this function we use a function get_status (x, y) which returns: [login to view URL]: when the stone at position x, y is black [login to view URL]: when the stone at the x position, y is white [login to view URL]: when there is no stone at position x, y [login to view URL]: when the position x, y is out of the goban Complete the Goban.is_taken method with your solution (you can add parameters to the method if needed). This one must respect the good practices of Python. You can test your solution at any time with [login to view URL] (the tests are in the file [login to view URL]). Examples: # = black o = white . = empty . #. # o # <= o is taken because she has no freedom, she has no adjacent empty space . #. ... # o # <= o is not taken because she has a freedom over . #. o # <= o is taken because she has no freedom (the top and the left are out of the goban so they are not freedoms) #. oo. ## o <= the form # is taken because it has no freedom o o # .o. oo. ##. <= the form # is not taken because it has a freedom in x = 2, y = 1 (0, 0 on the top left) o o # .o.
Project ID: 30214480

About the project

5 proposals
Remote project
Active 3 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
5 freelancers are bidding on average €36 EUR/hour for this job
User Avatar
Hi. Hope you are doing well. I have read your project details and I am very interested in your project. As you can see on my profile, I have rich experience with Python over 6 years. Please send me message and let's discuss more details. Thanks
€36 EUR in 40 days
5.0 (19 reviews)
6.1
6.1
User Avatar
I obtained full mark in a similar chess assignment one year ago. This problem is absolutely within my reach.
€36 EUR in 40 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Hi, I am familiar with game creation in python, and i have 5 years of experience, but i have never heard of go before; I am a fast learner though so should have no problem learning the mechanics. I am certain I can complete your project within your deadline and budget though. I am familiar working with others code and should have no problem integrating with yours. Thank you for considering me.
€36 EUR in 40 days
0.0 (1 review)
1.0
1.0

About the client

Flag of FRANCE
Massy, France
0.0
0
Member since May 16, 2021

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759) & Freelancer Online India Private Limited (CIN U93000HR2011FTC043854)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.