Find Jobs
Hire Freelancers

haskell developer

€8-30 EUR

Closed
Posted over 1 year ago

€8-30 EUR

Paid on delivery
Ploy is a board game similar to chess, in which each player has a set of pieces with different freedom of movement, which can be used to capture opposing pieces. The goal is to capture either the commander or all other pieces of the opposing party. Ploy is available for two or four players, with only the two-player variant being part of the task. Rules The game is played on a two-dimensional board with 9x9 squares - black starts. Each party has 15 pieces at the beginning, on which different numbers of movement directions are marked by lines. In each turn, a piece can be moved and/or rotated, whereby the abilities of the individual pieces differ. It can be shown in the figure. In each move, a movement and/or a rotation must be performed to bring about a change of state. A figure can be moved horizontally, vertically and diagonally along the direction lines shown on the figure. Figures cannot be jumped over. In the target square there may be either no piece or an opponent's piece, in which case the opponent's piece is removed from the board. The following diagram shows the moves in Y-plane. The end of the game is reached when one of the two parties either no longer has a commander or only has the commander. The party that has made the last move wins. Notation For the description of the game situation and moves we use a modified FEN notation (known from chess). That is, the columns are labeled with small letters from a to i, the rows with numbers from 1 to 9. To determine a field unambiguously, the column is always indicated first and then the row. Here a1 denotes the lower left corner, i9 the upper right. At the beginning, the black figures are on the " bottom " squares in rows 1-3, the white ones on the " top " ones in rows 7-9. Game board The game board is described by a string, which is constructed as follows: rows are separated by "/", and within the rows the squares are separated by ",". There is no "/" at the beginning and end of the string, and no "," at the beginning and end of each row. The field a9 is specified first, and the field i1 last. Within a field there can be a figure coded as follows: the first character is the color, "b" stands fu ̈r black and "w" stands fu ̈r white. The following digits are a decimal number between 1 and 255, which, as an unsigned 8-bit binary number, encodes with each bit a direction in which the figure may go (shown as a dash in the graphics). The LSB (Least Significant Bit) stands for up (or north, or along a column in the direction of the row with the ho ̈higher number), and the respective ho ̈higher bits stand for the other directions, starting clockwise from north. If there is no figure on the field, the position in the string will also remain empty. So the board at the beginning is described as a valid FEN string as follows: ,w84,w41,w56,w170,w56,w41,w84,/,,w24,w40,w17,w40,w48,, ,,w16,w16,w16,,,/,,,,,,,,/,,,,,,,,/,,,,,,,,/,,,b1,b1,b1,,,/ ,,b3,b130,b17,b130,b129,,/,b69,b146,b131,b170,b131,b146,b69. Moves Moves are described by a string of the form <start>-<destination>-<rotation>, where ... Cant post it all here. I will attach it later after we talk cause its from the univercity
Project ID: 35494847

About the project

1 proposal
Remote project
Active 1 yr 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
1 freelancer is bidding on average €19 EUR for this job
User Avatar
Hello, my name is Jonathan, I am a civil engineer and architect by profession, I have a lot of knowledge of technology, I have a company with more than 25 years of experience in design, I invite you to see my catalog, write me to make an agreement that takes into account your economy, I guarantee that we will arrive at a very good product.
€19 EUR in 1 day
1.6 (2 reviews)
2.9
2.9

About the client

Flag of GREECE
Athens, Greece
0.0
0
Member since Dec 12, 2022

Client Verification

Other jobs from this client

haskell developer -- 2
€8-30 EUR
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)
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.