Find Jobs
Hire Freelancers

haskell developer

€8-30 EUR

Cerrado
Publicado hace más de 1 año

€8-30 EUR

Pagado a la entrega
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
ID del proyecto: 35494847

Información sobre el proyecto

1 propuesta
Proyecto remoto
Activo hace 1 año

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
1 freelancer está ofertando un promedio de €19 EUR por este trabajo
Avatar del usuario
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 en 1 día
1,6 (2 comentarios)
2,9
2,9

Sobre este cliente

Bandera de GREECE
Athens, Greece
0,0
0
Miembro desde dic 12, 2022

Verificación del cliente

Otros trabajos de este cliente

haskell developer -- 2
€8-30 EUR
¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.