Vetusware.org
Software of the good old days

Home » Discussion » Programming » ChessNKT (Primitive Chess Program)
ChessNKT [message #1288] Sat, 09 April 2016 07:13 Go to next message
tienkhoanguyen
Messages: 847
Registered: November 2015
Location: Hopefully Firm Forever
Karma: 15
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 2729 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

Re: ChessNKT [message #1289 is a reply to message #1288] Sat, 09 April 2016 15:04 Go to previous messageGo to next message
tienkhoanguyen
Messages: 847
Registered: November 2015
Location: Hopefully Firm Forever
Karma: 15
Senior Member
Thank you Jesus Christ.
  • Attachment: NKT73.EXE
    (Size: 77.84KB, Downloaded 986 times)


Honours: Nguyen Binh Thuy
Honours: Huong Thi Vu
http://tiendosware.conforums.com
Re: ChessNKT [message #1294 is a reply to message #1288] Mon, 11 April 2016 09:59 Go to previous messageGo to next message
tienkhoanguyen
Messages: 847
Registered: November 2015
Location: Hopefully Firm Forever
Karma: 15
Senior Member
Jesus!
Chua Me O!

Here is a fix hopefully for the en passant situation.

The remaining task is to do the king and queen side castling.

Also, playing black and white sides need to be updated instead of being on one side all the time.

Thank you Jesus Christ who died just for me.
  • Attachment: NKTCHESS.EXE
    (Size: 82.82KB, Downloaded 2726 times)
  • Attachment: chesssav.EXE
    (Size: 82.83KB, Downloaded 2684 times)
  • Attachment: chess.sav
    (Size: 0.50KB, Downloaded 948 times)


Honours: Nguyen Binh Thuy
Honours: Huong Thi Vu
http://tiendosware.conforums.com
Re: ChessNKT [message #1297 is a reply to message #1288] Mon, 11 April 2016 12:08 Go to previous messageGo to next message
tienkhoanguyen
Messages: 847
Registered: November 2015
Location: Hopefully Firm Forever
Karma: 15
Senior Member
Jesus Christ!

This is a chess program update.

You are able to castle now.

It takes a little getting used to because it is simple.

However just pressing one of the numbers key from 1 to 8 allows castling so long that you press it first.

If you press the letters first then it goes into algebraic chess notation.

  • Attachment: NKTCHESS.EXE
    (Size: 83.39KB, Downloaded 2701 times)
  • Attachment: chesssav.EXE
    (Size: 83.39KB, Downloaded 2653 times)
  • Attachment: chess.sav
    (Size: 0.50KB, Downloaded 990 times)


Honours: Nguyen Binh Thuy
Honours: Huong Thi Vu
http://tiendosware.conforums.com
Re: ChessNKT [message #1298 is a reply to message #1288] Mon, 11 April 2016 13:46 Go to previous messageGo to next message
tienkhoanguyen
Messages: 847
Registered: November 2015
Location: Hopefully Firm Forever
Karma: 15
Senior Member
God, Jesus Christ, is number one greatest of all times past present and future#!!

Honours to my real mom Huong Thi Thuyen Vu
Honours to my real dad Nguyen Binh Thuy

Love to my real sister Nguyen Khoa Thi
Love to my real sister Nguyen Khoa Thuyen

Content: Thank you Jesus Christ.

nktchess.exe has been updated to save your current game in text called current.sav

chesssav.exe will read and reproduce the current game moves only if current.sav is renamed to chess.sav

nktchess.exe must be ran first in order for chesssav.exe to work unless you are making your own chess.sav from a game note your played somewhere else.

There is an example of how to make the chess note in algebraic chess notation in the default current.sav and chess.sav

Thank you.

The following link is a backup to the same programs just in case.

https://www.mediafire.com/folder/1bdzde3vlzrqw/Complete
  • Attachment: NKTCHESS.EXE
    (Size: 83.81KB, Downloaded 2695 times)
  • Attachment: chesssav.EXE
    (Size: 83.37KB, Downloaded 2541 times)
  • Attachment: chess.sav
    (Size: 0.14KB, Downloaded 989 times)
  • Attachment: CURRENT.SAV
    (Size: 0.01KB, Downloaded 981 times)


Honours: Nguyen Binh Thuy
Honours: Huong Thi Vu
http://tiendosware.conforums.com
Re: ChessNKT [message #1300 is a reply to message #1288] Mon, 11 April 2016 18:04 Go to previous messageGo to next message
tienkhoanguyen
Messages: 847
Registered: November 2015
Location: Hopefully Firm Forever
Karma: 15
Senior Member
Here in this nktchess and chesssav the chess program is now automating the castling moves. Please make sure all your moves are in algebraic chess notation. Two texts are given for an example to let the chesssav read. One is an example of castling while the other is an example of en passant. Thank you. God bless you!

P.S. To allow the chesssav to work please rename chesscsl to chess for the example of castling. Otherwise, you may rename chessenp to chess for the example of en passant. Also, please do not forget to add the extension sav to the texts to let the program know it is a chess text. Thank you again.

As always, I love God through Jesus Christ! So I have to keep reminding those who do not know. God gives to those who loves him more!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  • Attachment: NKTCHESS.EXE
    (Size: 84.06KB, Downloaded 2595 times)
  • Attachment: chesssav.EXE
    (Size: 84.05KB, Downloaded 2825 times)
  • Attachment: chesscsl.SAV
    (Size: 0.12KB, Downloaded 989 times)
  • Attachment: chessenp.sav
    (Size: 0.50KB, Downloaded 955 times)


Honours: Nguyen Binh Thuy
Honours: Huong Thi Vu
http://tiendosware.conforums.com
Re: ChessNKT [message #1322 is a reply to message #1288] Wed, 13 April 2016 17:58 Go to previous messageGo to next message
tienkhoanguyen
Messages: 847
Registered: November 2015
Location: Hopefully Firm Forever
Karma: 15
Senior Member
In this version of "nktchess" All the basic problems of chess should be fixed! Castling is done by moving the KING two spaces to the left or right respectively. Pawn promotion is done by moving behind the pawn that jumps two spaces to your side. Pawn promotion is done by walking the pawn all the way to the other side of the board; When you enter the final destination of the pawn to reach the end just press the piece value you want to promote to. For instance imagine a pawn at H7 playing white. After typing H7 H8 you would enter 9 right after the H8 to turn the pawn into a Queen. The possible piece values you can change into is 3 for bishop, 4 for knight, 5 for rook, and 9 for Queen. The program saves your current game in a file named "current.sav". The second program named "chesssav" reads the "current.sav" file, but first it must be renamed "chess.sav". With anything diligent hard work pays off. I've advertised you might reach 3000 ELO indicating you have become a grandmaster at close to the highest level; However, that means you need to work hard to achieve that goal.

So far the glitch is that there is no error checking. So almost any moves work.

It has been tested to work in Microsoft Windows XP 32-bit Edition; 32-bit Edition as opposed to 64-bit usually work with 16-bit programs like mine. DOSBox for Windows XP also works, but DOSBox for Mac has a glitch where it does not detect my release key code so the chesssav will review your chess game at a rapid pace.

If you would like to make your own saved game without the software the format for chess.sav is as follows:

D2 D3
D7 D5
.
.
.
H7 H85
ZZ ZZ

Any notes goes below the ZZ ZZ .
Please note that After the second letter and number that there is a empty invisible space then a carriage return to goto next line.
That invisible space is reserved for pawn promotion.
An example is given above where H7 H85 letting the program know that the pawn reached the end and promoted to a rook.
  • Attachment: chesssav.EXE
    (Size: 86.88KB, Downloaded 2774 times)
  • Attachment: NKT73.EXE
    (Size: 82.80KB, Downloaded 1020 times)


Honours: Nguyen Binh Thuy
Honours: Huong Thi Vu
http://tiendosware.conforums.com
Re: ChessNKT [message #1324 is a reply to message #1288] Wed, 13 April 2016 19:03 Go to previous messageGo to next message
tienkhoanguyen
Messages: 847
Registered: November 2015
Location: Hopefully Firm Forever
Karma: 15
Senior Member
Here is a full game example using en passant for one instance. White goes first and is on top so you would choose 2 at the beginning screen when running chesssav.exe. Thank you!

The enclosed file "chess.sav" works only with "chesssav.exe" the chess game reader. If you look at "chess.sav" with a text viewer you notice how algegraic chess notation is used and how notes are added to the end.
  • Attachment: chess.sav
    (Size: 0.59KB, Downloaded 897 times)


Honours: Nguyen Binh Thuy
Honours: Huong Thi Vu
http://tiendosware.conforums.com
Re: ChessNKT [message #1335 is a reply to message #1288] Sat, 16 April 2016 06:47 Go to previous messageGo to next message
tienkhoanguyen
Messages: 847
Registered: November 2015
Location: Hopefully Firm Forever
Karma: 15
Senior Member
Here in this edition of nktchess and chesssav the colors are attempted to be clearer. I hope you all enjoy my free wares *I think*. hehe

  • Attachment: chess.sav
    (Size: 1.53KB, Downloaded 800 times)
  • Attachment: chesssav.EXE
    (Size: 87.10KB, Downloaded 2581 times)
  • Attachment: NKTCHESS.EXE
    (Size: 87.11KB, Downloaded 2490 times)


Honours: Nguyen Binh Thuy
Honours: Huong Thi Vu
http://tiendosware.conforums.com
Re: ChessNKT [message #1336 is a reply to message #1288] Sat, 16 April 2016 10:01 Go to previous messageGo to next message
tienkhoanguyen
Messages: 847
Registered: November 2015
Location: Hopefully Firm Forever
Karma: 15
Senior Member
Well this is hopefully a little less annoying. It doesn't blink like the last one so hopefully it is more tolerated.

  • Attachment: chess.sav
    (Size: 1.53KB, Downloaded 757 times)
  • Attachment: chesssav.EXE
    (Size: 67.92KB, Downloaded 2410 times)
  • Attachment: NKTCHESS.EXE
    (Size: 68.16KB, Downloaded 2506 times)


Honours: Nguyen Binh Thuy
Honours: Huong Thi Vu
http://tiendosware.conforums.com
Possibly The Tentative Final NKTchess? [message #1337 is a reply to message #1288] Sat, 16 April 2016 12:35 Go to previous messageGo to next message
tienkhoanguyen
Messages: 847
Registered: November 2015
Location: Hopefully Firm Forever
Karma: 15
Senior Member
hehe Well I'd like to think this is the final one. However with all things 'final' is an elusive word that probably doesn't say what it intends.
  • Attachment: chess.sav
    (Size: 1.53KB, Downloaded 742 times)
  • Attachment: chesssav.EXE
    (Size: 68.10KB, Downloaded 2570 times)
  • Attachment: NKTCHESS.EXE
    (Size: 68.33KB, Downloaded 2472 times)


Honours: Nguyen Binh Thuy
Honours: Huong Thi Vu
http://tiendosware.conforums.com
Re: ChessNKT [message #1338 is a reply to message #1288] Sat, 16 April 2016 16:56 Go to previous messageGo to next message
tienkhoanguyen
Messages: 847
Registered: November 2015
Location: Hopefully Firm Forever
Karma: 15
Senior Member
Right now it is lacking a chess engine and also a pgn converter. I'm sorry about that, but it is meant to be like homework. I remember I learn best in school when I did the hard work instead of letting an engine (e.g. calculator) do it for you. Currently the most popular format is pgn to store chess information; Unfortunately this new way is not the way I learned. The old fashioned way is algebraic chess notation. It has less overhead on the mind and keeps it simpler so that the mind can think about the chess pieces.

So if you want something like Stockfish to play chess with a computer all day long then that is your choice. I don't know how far you'll go by playing all the time with the computer like that.

However if you want to analyse games and do your homework like you do in school to get an A then I advertise my program.

Know it is not the best in the world since God is the best of the good!

Honours to my real mom Huong Thi Thuyen Vu
Honours to my real dad Nguyen Binh Thuy

Love to my real sister Nguyen Khoa Thi
Love to my real sister Nguyen Khoa Thuyen

Content: Thank you Jesus Christ. [for the rest of my life on earth and for the rest of eternity afterwards, "Thank you Jesus Christ."]


Honours: Nguyen Binh Thuy
Honours: Huong Thi Vu
http://tiendosware.conforums.com
Re: ChessNKT [message #1339 is a reply to message #1288] Sat, 16 April 2016 17:03 Go to previous messageGo to next message
tienkhoanguyen
Messages: 847
Registered: November 2015
Location: Hopefully Firm Forever
Karma: 15
Senior Member
index.php/fa/453/0/This is the final programs so far.



Honours: Nguyen Binh Thuy
Honours: Huong Thi Vu
http://tiendosware.conforums.com
Re: ChessNKT [message #1340 is a reply to message #1288] Sat, 16 April 2016 17:17 Go to previous messageGo to next message
tienkhoanguyen
Messages: 847
Registered: November 2015
Location: Hopefully Firm Forever
Karma: 15
Senior Member
Some final credits for this program:

1. God for me being able to have the skills to make it because my two parents (mom Huong Thi Thuyen Vu and dad Nguyen Binh Thuy) put me through school for programming.

2. A few of my friends who've been there to help out with a few technical details.

For instance, double buffering is credited to Sir Allen Pilgrim who is the creator of Xargon for DOS.


Honours: Nguyen Binh Thuy
Honours: Huong Thi Vu
http://tiendosware.conforums.com
Re: ChessNKT [message #1341 is a reply to message #1340] Sat, 16 April 2016 17:33 Go to previous messageGo to next message
tienkhoanguyen
Messages: 847
Registered: November 2015
Location: Hopefully Firm Forever
Karma: 15
Senior Member
A few other names for the technical details are follows:

Game Console Programming through Quadko from www.dosgames.com

VGA programming through Sir David Brackeen especially using 256 color bitmaps.

Borland for Turbo C 2.01 and Turbo Assembler 4.1, and Turbo Assembler 2.51

by the way, Sir Allen Pilgrim should be able to be reached at www.classicdosgames.com

Adobe for the PhotoShop CS2

Microsoft for activating my Microsoft Windows 8, MS-DOS 6.22

DOSBox 0.74 at the VOGONS group

Lehigh County Community College, Schecksville, Pennsylvania for my 2 years of programming

The Vietnamese people of course.


Honours: Nguyen Binh Thuy
Honours: Huong Thi Vu
http://tiendosware.conforums.com
Re: ChessNKT [message #1342 is a reply to message #1341] Sat, 16 April 2016 17:37 Go to previous messageGo to next message
tienkhoanguyen
Messages: 847
Registered: November 2015
Location: Hopefully Firm Forever
Karma: 15
Senior Member
Almost left out everyone else even www.VetusWare.org haha

Thank you God for sending your only son Jesus Christ to die about 2000 years ago for all of us is the most important of all#


Honours: Nguyen Binh Thuy
Honours: Huong Thi Vu
http://tiendosware.conforums.com
Re: ChessNKT [message #1355 is a reply to message #1288] Tue, 19 April 2016 13:26 Go to previous messageGo to next message
tienkhoanguyen
Messages: 847
Registered: November 2015
Location: Hopefully Firm Forever
Karma: 15
Senior Member
Well here is an update to NKTchess and ChessSav. There was a memory conflict slight glitch. Also, an immediate exit key has been added to ChessSav by pressing q for quit. So all *should* be in the clear now. Please note that if you are using real hardware that it uses VGA card and MS-DOS must have a default of 1 MEG of ram. Thank you.

My parents left me the most important lesson of all when I grew up. They always made sure I praise Jesus Christ all my life! Thank you God my two sisters have graduated and are working now.
  • Attachment: chess.sav
    (Size: 1.53KB, Downloaded 748 times)
  • Attachment: chesssav.EXE
    (Size: 61.47KB, Downloaded 2461 times)
  • Attachment: NKTCHESS.EXE
    (Size: 62.39KB, Downloaded 2433 times)


Honours: Nguyen Binh Thuy
Honours: Huong Thi Vu
http://tiendosware.conforums.com
Re: ChessNKT [message #1359 is a reply to message #1288] Wed, 20 April 2016 01:32 Go to previous messageGo to next message
tienkhoanguyen
Messages: 847
Registered: November 2015
Location: Hopefully Firm Forever
Karma: 15
Senior Member
Here is a more compact NKTchess since it combines NKTchess and ChessSav into one program. You are able to make your own custom board by editing the bitmap. Also, a default board is used if you don't have one or you just like that one.

Once again, a sample chess.sav is enclosed so that you can review a game.
  • Attachment: chess.sav
    (Size: 1.53KB, Downloaded 778 times)
  • Attachment: board.bmp
    (Size: 63.55KB, Downloaded 871 times)
  • Attachment: NKTCHESS.EXE
    (Size: 68.89KB, Downloaded 2461 times)


Honours: Nguyen Binh Thuy
Honours: Huong Thi Vu
http://tiendosware.conforums.com
Re: ChessNKT [message #1361 is a reply to message #1288] Wed, 20 April 2016 11:11 Go to previous messageGo to next message
tienkhoanguyen
Messages: 847
Registered: November 2015
Location: Hopefully Firm Forever
Karma: 15
Senior Member
Classic.

If you're looking for a classic chessboard and feel, I hope you find it in this one. Well, it's pretty much just classic so far that a digital computer design goes. hehe

So without further a due, here is NKTchess/ChessSav.

P.S.

Please note if you are using the classic black and white board that the algebraic chess coordinates you will be entering are not visible. Please give it a second to update the board after you enter the coordinates. Thank you.

For instance, the black and white board shows up. You would enter something like D2D3 and that tells the computer to move from D2 to D3. It takes about a second for it to update the entire board. Q always quits the program.

Thank you Jesus Christ.

Honours to my real mom Huong Thi Thuyen Vu
Honours to my real dad Nguyen Binh Thuy

Love to my real sister Nguyen Khoa Thuyen
Love to my real sister Nguyen Khoa Thi

P.P.S. Also, please note that board.bmp needs to be present for the classic board to work.
  • Attachment: board.bmp
    (Size: 63.55KB, Downloaded 906 times)
  • Attachment: chess.sav
    (Size: 1.53KB, Downloaded 722 times)
  • Attachment: NKTCHESS.EXE
    (Size: 69.08KB, Downloaded 787 times)


Honours: Nguyen Binh Thuy
Honours: Huong Thi Vu
http://tiendosware.conforums.com
Re: ChessNKT [message #1362 is a reply to message #1288] Wed, 20 April 2016 12:08 Go to previous messageGo to next message
tienkhoanguyen
Messages: 847
Registered: November 2015
Location: Hopefully Firm Forever
Karma: 15
Senior Member
Okay, for those of you who know me I've been able to reach the low level chess master two times. One time when I draw at or around 2200 ELO and another time when I won at exact 2212 ELO. 2200 ELO and above is considered master in chess.

Well, I'm trying to create this chess board so that the hardcore chess players would not mind playing on it. In this one the white square is on the bottom right. Technically the right square is supposed to be on the bottom right.
  • Attachment: board.bmp
    (Size: 63.55KB, Downloaded 910 times)
  • Attachment: chess.sav
    (Size: 1.53KB, Downloaded 791 times)
  • Attachment: NKTCHESS.EXE
    (Size: 69.08KB, Downloaded 2401 times)


Honours: Nguyen Binh Thuy
Honours: Huong Thi Vu
http://tiendosware.conforums.com
Re: ChessNKT [message #1363 is a reply to message #1288] Wed, 20 April 2016 17:56 Go to previous messageGo to next message
tienkhoanguyen
Messages: 847
Registered: November 2015
Location: Hopefully Firm Forever
Karma: 15
Senior Member
Jesus Christ!

Bless to God first#

Then bless my real mom Huong Thi Thuyen Vu.
Also, honours to my real mom Huong Thi Thuyen Vu and my real dad Nguyen Binh Thuy.

Love to my real sisters, Nguyen Khoa Thuyen and Nguyen Khoa Thi.

Content: Thank you Jesus Christ.

A little update on the board.
  • Attachment: board.bmp
    (Size: 63.55KB, Downloaded 908 times)
  • Attachment: chess.sav
    (Size: 1.53KB, Downloaded 761 times)
  • Attachment: NKTCHESS.EXE
    (Size: 69.08KB, Downloaded 841 times)


Honours: Nguyen Binh Thuy
Honours: Huong Thi Vu
http://tiendosware.conforums.com
Re: ChessNKT [message #1364 is a reply to message #1288] Wed, 20 April 2016 22:21 Go to previous messageGo to next message
tienkhoanguyen
Messages: 847
Registered: November 2015
Location: Hopefully Firm Forever
Karma: 15
Senior Member
Here is a major update for certain emulators. In one instance a DOS emulator reviews a game rapidly. So this update is made to prevent rapid reviews of games during ChessSav mode.
  • Attachment: board.bmp
    (Size: 63.55KB, Downloaded 864 times)
  • Attachment: chess.sav
    (Size: 1.53KB, Downloaded 758 times)
  • Attachment: NKTCHESS.EXE
    (Size: 69.27KB, Downloaded 2612 times)


Honours: Nguyen Binh Thuy
Honours: Huong Thi Vu
http://tiendosware.conforums.com
Re: ChessNKT [message #1401 is a reply to message #1288] Sat, 30 April 2016 04:19 Go to previous messageGo to next message
tienkhoanguyen
Messages: 847
Registered: November 2015
Location: Hopefully Firm Forever
Karma: 15
Senior Member
God, Jesus Christ, is number one!

Jesus! - dad Nguyen Binh Thuy
Chua Me O! - mom Huong Thi Thuyen Vu

Content: Thank you Jesus Christ.

Well this is NKTCHESS. There is a 3rd side secret option.

When you are asked to play white or dark, just press 3 and it takes to you an alternate ending.

This is just one of those homeworks that I'm doing on my own time.

  • Attachment: board.bmp
    (Size: 63.55KB, Downloaded 897 times)
  • Attachment: chess.sav
    (Size: 1.53KB, Downloaded 776 times)
  • Attachment: NKTCHESS.EXE
    (Size: 69.28KB, Downloaded 828 times)


Honours: Nguyen Binh Thuy
Honours: Huong Thi Vu
http://tiendosware.conforums.com
Re: ChessNKT [message #1432 is a reply to message #1288] Fri, 06 May 2016 19:55 Go to previous message
tienkhoanguyen
Messages: 847
Registered: November 2015
Location: Hopefully Firm Forever
Karma: 15
Senior Member
God, Jesus Christ, is number one!

Honours to my real mom Huong Thi Thuyen Vu
Honours to my real dad Nguyen Binh Thuy

Content: Thank you Jesus Christ.

I've just been thinking about the possible modification of my chess programs and other programs. If there is a need to add a chess engine you can reverse compile it and use a Borland Turbo C 2.01 to add a chess engine and such.


Honours: Nguyen Binh Thuy
Honours: Huong Thi Vu
http://tiendosware.conforums.com
Previous Topic: Pongista Final Edition
Next Topic: TurtleMom
Goto Forum:
  


Current Time: Sun Nov 24 13:16:13 MSK 2024

Total time taken to generate the page: 0.04910 seconds