Đã Đóng

Implementation of Gomoku game

Write a program to play Gomoku on a 19x19 board. The player that makes five-in-a-row

(horizontal, vertical or diagonal) wins. We adopt the free style version of the game ---meaning, five or more in a row is a win.

The board has a 19x19 grid. The columns are labeled A, B, …, T from left to right. The rows are labeled 1, 2, 3, …, 19 from bottom to top. Each intersecting position is labeled by the coordinate, that is the name of the column (a letter) followed by the name of the row (a number), e.g. K10, L9, etc.

You can use whatever programming language you like. The interface of the program is as follows (a GUI interface is welcome but is not required):

The program should be in an eternal loop, waiting for the input, which is the coordinate of your opponent's move; and giving an output of the coordinate of your move. The input for the first move is O0 (Letter O followed by zero) as a convention. The letters should not be case sensitive. If one player wins, the loop should terminate and output the winner. If there is a tie, the program should report the result being a tie.

Kỹ năng: PHP, Kiến trúc phần mềm

Xem thêm: top programming language, programming board game, input board game, horizontal architecture, g programming language, game programming language, free game programming software, first programming language, e programming language, b programming language, game programming software, row b, letter G, Game programming, game gui, game board, board game, grid program, number grid columns, vertical php, gui game programming, grid tie, vertical columns, number game, input program gui

Về Bên Thuê:
( 1 nhận xét ) fort collins, United States

Mã Dự Án: #1047330

1 freelancer đang chào giá trung bình $90 cho công việc này

lightweight

I can help you,please check your pm,thanks.

$90 USD trong 1 ngày
(0 Đánh Giá)
0.0