Menu

(Solved) : Input Data Game Sim Https Enwikipediaorg Wiki Sim Pencilgame Six Points Arranged Circle Tw Q31558304 . . .

Zugehörige Einga 1 2 1 4 2 3 1 3 3 4 4 5 2 4 6 3 input data

For the game Sim(https://en.wikipedia.org/wiki/Sim_(pencil_game)) will be six
Points arranged in a circle. The two players connect alternatelywith different colors two points each other, between which there isno connection. The goal is to achieve a triangle, ie to connectthree points in pairs with the same color

Write the source code and a makefile that generates a simprogram. This reads from the standard input separated by spaces themoves that are given as start and end point. The color of the firstplayer is 1, that of the second player. 2
(This is automatically against and therefore does not appear in theinput). The input is
completed with the number pair (0, 0).
It should generate the following output:
• 1 or 2 if Player 1 or Player 2 has created a triangle.
• 0, if no player has created a triangle yet.
• -1, if a wrong move was played (non existent points or alreadydrawn edge selected again).

Zugehörige Einga 1 2 1 4 2 3 1 3 3 4 4 5 2 4 6 3 Show transcribed image text

Expert Answer


Answer to Input Data Game Sim Https Enwikipediaorg Wiki Sim Pencilgame Six Points Arranged Circle Tw Q31558304 . . .

OR