Skip to content

AbdulrahmanEl-Bedewy/Chess-with-x86-Assembly

Repository files navigation

chess


Chess-with-x86-Assembly

A chess game written in x86 assembly language. This project was done as a part of the Microprocessor Systems-1 course.

Gameplay

The game could be played through different computers connected to the same network. The game is based on speed chess, meaning that the players do not take turns to play. The game's only rule is that after you move a piece you have a 3 seconds cooldown on that specific piece. The win condition is a player taking the other's king.

GamePlay.compressed.mp4

How to run

Download the project. Download the DOSBox emulator. Open DOSBox options file and make the cycles 20k. Open the DOSBox and mount the project directory. Then run the following commands:

mount c <path-to-project-directory>
c:
masm graphics;
masm logic;
masm chat;
masm main;
link main+graphics+logic+chat;

Now you can run the game by typing main in the DOSBox.

To setup multiplayer, you need to run the game on two different DOSBox instances. Make sure both the instances are connected to the same network. Then, setup the DOSBox options file of both the instances. Add the following lines to the DOSBox on the server side:

serial1=nullmodem

Add the following lines to the DOSBox on the client side:

serial1=nullmodem server:<Insert IP of server on network>

You can retrieve the server's IP by typing ipconfig in the command prompt on that computer. Now, you can run the game on both the instances. Make sure to run the game on the server side first. Then, run the game on the client side. The game will start on the server side. Now, you can play the game on both the instances. The game will be synced on both the instances.

Controls & How to play

The game is played using the keyboard. The controls are as follows:

  • Arrow keys to move the cursor.
  • 0 numpad to select a piece.

You can find that the game also has a chat feature. The chat feature is used to communicate with the other player. The chat feature is accessed either as a separate mode or as a part of the game. You can just start typing while playing the game. The chat is displayed on the side of the game.

Screenshots

image image image image image image image

About

A LAN based speed chess game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published