https://github.com/ryuzen6/charleshitwicket_21bai1188
A turn-based chess-like game with a server-client architecture, utilizing websockets for real-time communication and a web-based user interface.
https://github.com/ryuzen6/charleshitwicket_21bai1188
chess-game client-server express-js game-development html-css-javascript node-js socket-io websocket-client websocket-server
Last synced: 5 months ago
JSON representation
A turn-based chess-like game with a server-client architecture, utilizing websockets for real-time communication and a web-based user interface.
- Host: GitHub
- URL: https://github.com/ryuzen6/charleshitwicket_21bai1188
- Owner: ryuzen6
- Created: 2024-08-26T15:54:27.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-26T17:35:03.000Z (almost 2 years ago)
- Last Synced: 2025-02-13T15:18:36.968Z (over 1 year ago)
- Topics: chess-game, client-server, express-js, game-development, html-css-javascript, node-js, socket-io, websocket-client, websocket-server
- Language: JavaScript
- Homepage:
- Size: 713 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Turn-based Chess-like Game
## Overview
This project is a simple turn-based chess-like game implemented with a server-client architecture using WebSockets. The game is played on a 5x5 grid between two players, each controlling a team of characters. The server handles game logic and state, while the client provides an interactive user interface.
## Prerequisites
- Node.js and npm
- A modern web browser
## Setup
1. **Clone the Repository:**
```bash
git clone https://github.com/ryuzen6/CharlesHitwicket_21BAI1188.git
cd CharlesHitwicket_21BAI1188
2. **Install Server Dependencies: Navigate to the server directory:**
```bash
cd server
npm install
3. **Start the Server:**
```bash
node server.js
4. **Open the Client: Open client/index.html in two separate browser tabs or windows.**
## How to Play
* Each player controls a team of characters on a 5x5 grid.
* Players take turns to move their characters.
* Use the prompt to input moves, such as F (forward), B (backward), L (left), R (right), and combinations like FL (forward-left).
## Gameplay Screenshots
### Game Display

### Input Move



### Invalid Move


### Not your Turn

## Folder Structure
1. **Folder Structure:**
```bash
/CharlesHitwicket_21BAI1188
├── client/
│ ├── index.html # Main HTML file
│ ├── style.css # CSS for the game
│ └── app.js # Client-side JavaScript
├── server/
│ └── server.js # WebSocket server
├── README.md # Project documentation
└── package.json # Node.js dependencies
## License
This project is licensed under the MIT License.