The Wayback Machine - https://web.archive.org/web/20240118173155/https://www.geeksforgeeks.org/puzzle-round-table-coin-game/
Open In App
Related Articles

Puzzle | (Round table coin game)

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Report issue
Report

Suppose two player, player A and player B have the infinite number of coins. Now they are sitting near a perfectly round table and going to play a game. The game is, in each turn, a player will put one coin anywhere on the table (not on the top of coin already placed on the table, but on the surface of the table). And the player who places the last coin on the table will win the game. Given player A will always move first suggest a strategy such that player A will always win, no matter how player B will play.

Solution:
On the first move place the coin on the center of the table. Then player B will place his coin anywhere on the table. Now, you put your coin on the line of diameter passing through the coin placed by player B, at the same distance away from the boundary of the circle (i.e mimic his placement on the opposite side of the table). Refer figure for better understanding. If player A has space to place a coin, so will player B. Player B will run out of place before player A.

Learn to code easily with our course Coding for Everyone. This course is accessible and designed for everyone, even if you're new to coding. Start today and join millions on a journey to improve your skills!

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Commit to GfG's Three-90 Challenge! Purchase a course, complete 90% in 90 days, and save 90% cost click here to explore.
Last Updated : 18 Jan, 2023
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads