init: initialize project - 2 games
This commit is contained in:
commit
4740d0003b
7 changed files with 1784 additions and 0 deletions
70
tictactoe/README.md
Normal file
70
tictactoe/README.md
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
# Educational Tic Tac Toe
|
||||
|
||||
A Tic Tac Toe game with an educational twist! Players must correctly answer questions to make their moves.
|
||||
|
||||
## Features
|
||||
|
||||
- Classic Tic Tac Toe gameplay
|
||||
- Educational questions that must be answered correctly to make a move
|
||||
- Support for both True/False and Multiple Choice questions
|
||||
- Full support for Arabic language
|
||||
- Different question categories: General Knowledge, Math, Science, and Language
|
||||
- Score tracking for multiple games
|
||||
- Responsive design that works on all devices
|
||||
|
||||
## How to Play
|
||||
|
||||
1. Open `index.html` in a web browser
|
||||
2. Players take turns clicking on empty cells
|
||||
3. When a cell is clicked, a question appears
|
||||
4. If the player answers correctly, they get to place their mark (X or O)
|
||||
5. If the player answers incorrectly, their turn is skipped
|
||||
6. The first player to get three marks in a row (horizontally, vertically, or diagonally) wins
|
||||
7. If all cells are filled without a winner, the game is a draw
|
||||
|
||||
## Game Settings
|
||||
|
||||
You can customize the game experience using the settings panel:
|
||||
|
||||
### Question Type
|
||||
- **True/False**: Simple true or false questions
|
||||
- **Multiple Choice**: Questions with multiple options
|
||||
|
||||
### Language
|
||||
- **English**: Questions and interface in English
|
||||
- **Arabic**: Questions and interface in Arabic (with RTL support)
|
||||
|
||||
### Category
|
||||
- **General Knowledge**: Various general knowledge questions
|
||||
- **Math**: Mathematical questions and problems
|
||||
- **Science**: Science-related questions
|
||||
- **Language**: Questions about language and vocabulary
|
||||
|
||||
## Running the Game
|
||||
|
||||
Simply open the `index.html` file in any modern web browser:
|
||||
|
||||
```
|
||||
firefox index.html
|
||||
```
|
||||
|
||||
or
|
||||
|
||||
```
|
||||
google-chrome index.html
|
||||
```
|
||||
|
||||
## Customizing Questions
|
||||
|
||||
You can add or modify questions by editing the `questions.js` file. The questions are organized by:
|
||||
- Language (english, arabic)
|
||||
- Category (general, math, science, language)
|
||||
- Type (truefalse, multiplechoice)
|
||||
|
||||
## Browser Compatibility
|
||||
|
||||
This game works in all modern browsers:
|
||||
- Chrome
|
||||
- Firefox
|
||||
- Safari
|
||||
- Edge
|
||||
Loading…
Add table
Add a link
Reference in a new issue