Home » Discussion » Programming » ChessNKT (Primitive Chess Program)
ChessNKT [message #1288] |
Sat, 09 April 2016 07:13 |
|
tienkhoanguyen
Messages: 847 Registered: November 2015 Location: Hopefully Firm Forever
Karma:
|
Senior Member |
|
|
This is my first chess program. It is fully functional except it is extreme in the sense that it's primitive.
The way you move depends on the board layout.
The board layout is numbered
00,10,20,30,40,50,70,80
01,11,21,31,41,51,71,81
.
.
.
07,17,27,37,47,57,77,87
08,18,28,38,48,58,78,88
The first number is the column from 0 to 8 inclusive skipping the number after 5.
The second number is the row from 0 to 8 inclusive skipping the number after 5.
Anyways, you enter the two numbers for the start of the piece and enter two numbers where you want it placed.
You may move the pieces anywhere so it is up to you to check for legal moves.
-
Attachment: NKT73.EXE
(Size: 77.67KB, Downloaded 2725 times)
Honours: Nguyen Binh Thuy
Honours: Huong Thi Vu
http://tiendosware.conforums.com
[Updated on: Thu, 14 April 2016 19:01] by Moderator Report message to a moderator
|
|
|
Goto Forum:
Current Time: Thu Nov 21 22:52:55 MSK 2024
Total time taken to generate the page: 0.09633 seconds
|