https://github.com/w1redch4d/efichess
Chess inside UEFI
https://github.com/w1redch4d/efichess
chess-game edk2 uefi-application uefi-development
Last synced: 4 months ago
JSON representation
Chess inside UEFI
- Host: GitHub
- URL: https://github.com/w1redch4d/efichess
- Owner: w1redch4d
- License: mit
- Created: 2024-11-11T06:32:30.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-11-12T17:59:45.000Z (6 months ago)
- Last Synced: 2024-12-04T22:16:09.459Z (6 months ago)
- Topics: chess-game, edk2, uefi-application, uefi-development
- Language: C
- Homepage:
- Size: 146 KB
- Stars: 8
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# EFI CHESS

## References
- [UEFI 2.6](https://uefi.org/sites/default/files/resources/UEFI%20Spec%202_6.pdf)
- [Queso Fuego (UEFI DEV)](https://youtu.be/t3iwBQg_Gik?list=PLT7NbkyNWaqZYHNLtOZ1MNxOt8myP5K0p)
- [Bare Minimum Chess in C](https://youtu.be/927rfAPHX6E)## Building
### Prerequisite
CMake, llvm-toolchain, [edk2-ovmf](https://github.com/tianocore/tianocore.github.io/wiki/How-to-build-OVMF), qemu, [zig-cross](https://github.com/mrexodia/zig-cross)
### Commands
blindly follow these, and dig down the rabbit hole using google to know what these commands does
```
git clone --recursive https://github.com/w1redch4d/efichess && cd efichess
cmake -G Ninja -B build -DCMAKE_TOOLCHAIN_FILE=./zig-cross/cmake/zig-toolchain-uefi64.cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
cmake --build build
```Then run the file in an emulator:
```
cd build
mkdir -p esp/EFI/BOOT
cp chess.efi esp/EFI/BOOT/BOOTx64.EFI
cp /path/to/OVMF.fd .
qemu-system-x86_64 -drive if=pflash,format=raw,file=OVMF.fd -M accel=kvm:tcg -net none -serial stdio -drive format=raw,file=fat:rw:esp
```