Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

philogicae/ethbuc2025-gyges

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

EthBucharest 2025 - Gyges

Implementation of Gyges, a strategy board game.

Why this game? Because nobody knows it and the rules seem to be simple on paper... but the game is actually complex and pretty deep when we take a closer look (like Go).

The duration of a game can go from 10 seconds to 2 hours, if the levels of the players are close.

As a solidity dev, it was the perfect opportunity to discover Arbitrum Stylus, refresh my Rust, and have fun with low-level optimizations (Yes it's FUN).

How to play

Read the rules: here

Stack

Notes

Tbh I focused on understanding the specificities of Rust/Stylus and optimizing EVM storage (The state of the game fits on a single bytes32).

Didn't have time to:

  • Restrict paths properly: should not be able to pass by an occupied cell or a cell already used during the turn.
  • Placement restriction when 'flying' (after replacing a piece): can place a piece on any empty cell, but should not be able to go behind the opponent line.

TODO's

  • Improve the smart contract:
    • Heavy refactoring
    • Add missing restrictions
    • Add winner check
  • Build the webUI (probably with React)
  • Add AI opponent using LLM agent

About

Implementation of Gyges, a strategy board game, during EthBucharest Hackathon 2025

Topics

Resources

Stars

Watchers

Forks

Morty Proxy This is a proxified and sanitized view of the page, visit original site.