Ganit is a 2-player math battle game where players race to solve more questions in 1 minute.
Ganit is a competitive multiplayer mathematics game built on the blockchain where two players engage in real-time math battles. Players compete in 60-second duels, solving arithmetic problems including addition, subtraction, and multiplication to accumulate points. The player who answers the most questions correctly within the time limit wins the match. The game features real-time competitive gameplay with 20 questions per match, a dynamic scoring system that awards 10 points for correct answers and applies a 2-point penalty for wrong answers, global leaderboards tracking player statistics, wins, and total scores, and massively multiplayer capability supporting thousands of concurrent games.
Ganit is built on Arcology Network, a next-generation blockchain platform that enables true parallel execution of smart contracts. This choice is particularly suitable for gaming because it utilizes concurrent data structures like AddressU256CumMap for player scores and wins, and U256Cum for global game counters, allowing thread-safe operations where multiple players can update scores simultaneously without data races and ensuring atomic updates where score increments and game statistics are handled atomically across concurrent transactions. The platform implements deferred execution for batch processing through Runtime.defer functions that enable parallel game creation of up to 30000 games simultaneously and concurrent answer submission allowing 25000 players to submit answers in parallel, resulting in optimized throughput through batched execution that reduces blockchain congestion. The development stack includes smart contracts written in Solidity version 0.8.20 with Arcology's concurrent libraries, Hardhat development framework with custom deployment scripts, and Arcology's frontend utilities for pre-signed transaction batching.
Traditional blockchains process transactions sequentially creating bottlenecks, while Arcology enables parallel processing where multiple games run simultaneously instead of sequentially. The gaming-specific benefits include low latency enabling real-time answer submissions without waiting for other players, high throughput supporting thousands of concurrent matches without performance degradation, fair gameplay with no transaction ordering advantages between players, and cost efficiency through reduced gas costs via batched operations.
The scalability architecture features horizontal scaling through parallelization where multiple game sessions run simultaneously without interference, each game operates independently with its own state, and players across different games don't block each other's transactions. Parallel player actions allow for thousands of games with multiple players and numerous answers to process as concurrent transactions. The system uses lock-free statistics updates where global counters for total games and active games are updated without locks, player statistics are accumulated across concurrent matches, and there are no bottlenecks when thousands of games end simultaneously. Memory-efficient question generation packs question data efficiently, and the performance metrics show dramatic improvements over traditional blockchain gaming.
Traditional blockchain gaming typically achieves 15 to 30 transactions per second, requiring 33 to 66 minutes to process 1000 games, resulting in long wait times and expensive gas fees for users. In contrast, Ganit on Arcology achieves over 30000 concurrent operations per batch, processing 1000 games in approximately one block time or about 12 seconds, providing near-instant gameplay and reduced costs for users. Real-world scalability scenarios demonstrate that tournament mode with 1000 simultaneous matches would require 16.7 hours of sequential processing on traditional systems but only 60 seconds total on Arcology due to parallel processing. Global championships with over 10000 concurrent players benefit from parallel match-making and game creation, simultaneous answer processing across all active games, and real-time leaderboard updates without performance impact.
Ganit demonstrates how blockchain gaming can achieve web2-level performance while maintaining decentralization and transparency. By leveraging Arcology's parallel execution capabilities, it solves the fundamental scalability issues that have limited blockchain gaming adoption, paving the way for truly competitive, real-time multiplayer experiences on-chain. This architecture makes Ganit suitable for esports tournaments, educational platforms, and large-scale competitive gaming where performance and scalability are critical success factors.
Ganit is technologically built using a sophisticated blockchain development stack centered around Arcology Network's parallel execution capabilities. The core smart contract is developed in Solidity version 0.8.20 and leverages specialized concurrent data structures from the Arcology Concurrent Library version 2.2.1, including AddressU256CumMap for player statistics tracking, U256Cum for global game counters, and U256 arrays for game results storage. The development environment utilizes Hardhat version 2.26.3 as the primary development framework with integrated Ethers.js version 5.8.0 for blockchain interactions and the Nomiclabs Hardhat-Ethers plugin version 2.2.3 for seamless contract deployment and testing.
The smart contract architecture implements deferred execution patterns through Runtime.defer functions that enable batched parallel processing, allowing up to 30,000 game creation transactions and 25,000 answer submission transactions to be processed simultaneously in a single batch. The contract uses memory-efficient data packing techniques where question data is compressed using bitwise operations, storing two numbers and an operation type in a single 256-bit slot through bit shifting operations. The game logic generates pseudorandom mathematical questions using keccak256 hashing combined with block timestamp and game-specific seeds to ensure fair and unpredictable question generation across concurrent games.
The deployment and testing infrastructure is powered by Arcology's frontend utilities version 1.0.10 and 1.0.11, which provide specialized functions for pre-signed transaction generation and batch processing capabilities. The test script demonstrates the platform's scalability by generating transaction files for 1000 parallel games with 40,000 total answer submissions, using progress tracking libraries to monitor the generation process. The network configuration connects to a local Arcology devnet running on IP address 192.168.0.7 with port 8545, utilizing 11 pre-funded accounts with their private keys for multi-player simulation and testing scenarios.
The transaction generation process creates three distinct categories of pre-signed transactions stored in organized directory structures including game creation transactions, answer submission transactions, and game ending transactions. Each transaction is carefully crafted using Ethers.js populateTransaction methods, with the from field removed to prevent address mismatches during signing, and wallets dynamically created for each player using their respective private keys from the network configuration. The system implements realistic player behavior simulation where answers have a 30 percent probability of being correct to mimic actual gameplay patterns, with incorrect answers randomly generated within reasonable ranges.
The concurrent data structures handle state management without traditional locking mechanisms by using cumulative operations that are mathematically commutative and associative, ensuring that multiple simultaneous updates to player scores, game counts, and win statistics can be processed in parallel without data corruption or race conditions. The contract's constructor enables deferred execution for the most frequently called functions, allowing the Arcology runtime to batch these operations for optimal parallel processing performance. The entire system is designed to demonstrate blockchain gaming at web-scale performance levels, where thousands of concurrent players can interact simultaneously while maintaining the transparency and decentralization benefits of blockchain technology.

