SkillAgentSearch skills...

ExcelChess

A dynamic chess game built in Excel, featuring an computer-powered opponent

Install / Use

/learn @h9zdev/ExcelChess
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

ExcelChess

ExcelChess Logo

Excel - ExcelChess CC BY-NC 4.0 License Excel Version GitHub Issues GitHub Pull Requests GitHub Stars Profile Views VBA Script

Description

♟️ Play chess in Excel! 📊 Powered by VBA scripts 🖥️, ExcelChess brings the classic game to your spreadsheet. 👾 Challenge friends or test your skills! ✨

Usage

ExcelChess is a chess game built entirely within Microsoft Excel using VBA (Visual Basic for Applications). To get started:

  1. Download: Clone or download the repository from GitHub.
  2. Open in Excel: Open the .xlsm file in Microsoft Excel (version 2016 or later recommended [File name is Echess.xlsm which is uploded in this repo]).
  3. Enable Macros: Ensure macros are enabled to allow the VBA scripts to run.
  4. Play: Follow the in-sheet instructions to start a game of chess against another player or the built-in AI (if applicable).

For detailed instructions or troubleshooting, open an issue.

Chess with Enhanced AI in Excel VBA

This guide outlines how to create a Chess game in Excel VBA with a more competitive AI, while keeping it practical for Excel VBA. The structure reuses the previous code framework, updating only the AI logic for improved gameplay.

Steps to Code Chess with Enhanced AI in Excel

1. Enable Developer Tab

  • Go to File > Options > Customize Ribbon.
  • Check the "Developer" box.
  • Click OK.

2. Set Up Worksheet Code

  • Press Alt + F11 to open the VBA editor.
  • Expand VBAProject > Microsoft Excel Objects.
  • Double-click Sheet1.
  • Paste the worksheet code (see shhet.vba file in this repo copy and paste the code not a file).

3. Insert Module Code

  • In the VBA editor, go to Insert > Module.
  • Paste the module code.(see module.vba file in this repo copy and paste the code not a file)

4. Run Setup

  • Press Alt + Q to close the VBA editor.
  • Go to Developer > Macros.
  • Run SetupChessboard.

5. Play the Game

  • Click a White piece, then a legal target square to make a move.
  • The AI (Black) responds with a calculated move based on the enhanced model.

6. Save the File

  • Save the workbook as an .xlsm file (Excel Macro-Enabled Workbook).

Below are some example screenshots of the Chess game in action:

Initial Chessboard Setup

Chessboard Setup Caption: The chessboard after running SetupChessboard.

Gameplay Video

Here’s a short MP4 video demonstrating the gameplay:

<video width="600" controls> <source src="https://github.com/haybnzz/ExcelChess/raw/refs/heads/main/ExcelChess.mp4" type="video/mp4"> Your browser does not support the video tag. </video> *Caption: A demo of White and Black (AI) taking turns.*

Alternative: Link to Video (Fallback)

Watch Gameplay Video
Click the link above to view the MP4 file if the video doesn’t display.

📜 License

This project is licensed under the Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0) License. See the LICENSE file for more details.

Unauthorized use is strictly prohibited.

📧 Email: singularat@protn.me

Contributors and Developers

<img src="https://avatars.githubusercontent.com/u/67865621?s=64&v=4" width="64" height="64" alt="haybnzz">

<img src="https://avatars.githubusercontent.com/u/144106684?s=64&v=4" width="64" height="64" alt="Glitchesminds">

☕ Support

Donate via Monero: 45PU6txuLxtFFcVP95qT2xXdg7eZzPsqFfbtZp5HTjLbPquDAugBKNSh1bJ76qmAWNGMBCKk4R1UCYqXxYwYfP2wTggZNhq

Related Skills

View on GitHub
GitHub Stars4
CategoryDevelopment
Updated4mo ago
Forks1

Languages

VBA

Security Score

67/100

Audited on Nov 19, 2025

No findings