Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gaboreszaki/mathgame
Math-Game 2.0
https://github.com/gaboreszaki/mathgame
oop php83 phpunit vite
Last synced: 20 days ago
JSON representation
Math-Game 2.0
- Host: GitHub
- URL: https://github.com/gaboreszaki/mathgame
- Owner: gaboreszaki
- License: mit
- Created: 2018-03-04T19:31:38.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2024-08-29T13:17:05.000Z (5 months ago)
- Last Synced: 2024-11-18T23:58:17.571Z (3 months ago)
- Topics: oop, php83, phpunit, vite
- Language: PHP
- Homepage: https://math-game.northweb.dev/
- Size: 270 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MathGame 2.0
## 2.0 Update
- New interface
- New Game mechanics
- php 8.3 support
- New Game controllers## What is this project:
This is a small game for mostly practice TDD and advanced PHP 7 techniques.The game can generate infinite amount of basic math question and the matching answer, with customisable difficulty.
**[Working demo](https://math-game.northweb.dev/)**
To run this app you need to run a ` composer install `
### Current Features:
* 5 difficulty level
* 4 math operation support
* infinite amount of basic math question### Difficulties :
#### "easy": //default
- min_num = 1;
- max_num = 5;
- operations available: + -#### "medium":
- min_num = 1;
- max_num = 10;
- operations available: * /#### "hard":
- min_num = 10;
- max_num = 100;
- operations available: + - * /#### "nerd":
- min_num = 100;
- max_num = 9999;
- operations available: + - * /#### "ultra":
- min_num = 99999;
- max_num = 9999999;
- operations available: + - * /#### Example:
```
$new_game = new App\Controllers\GameController;
$new_game->setGameDificulty("medium"); // optional - see difficulties
$new_game->startGame();$the_question = $new_game->show_the_question();
$the_answer = $new_game->getAnswer();```