Skip to content

Commit 76efa83

Browse files
authored
Update README.md
1 parent 6326840 commit 76efa83

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

Diff for: PyGamesScripts/Reversegram/README.md

+63
Original file line numberDiff line numberDiff line change
@@ -1 +1,64 @@
1+
# Reversegram - Game
2+
3+
## Aim
4+
5+
The main aim is to create a Reversegam game that has an 8×8 board and tiles that are black on one side and white on the other (our game will use Os and Xs instead).
6+
7+
## Purpose
8+
9+
The purpose of this project is creating a game using python for the players who can spend the time in leisure hours.
10+
11+
## Short description of package/script
12+
13+
This game has a Two players one is computer and one is human they take turns placing tiles of their chosen color—black(O) or white(X)—on the board. When a player places a tile on the board, any of the opponent’s tiles that are between the new tile and the other tiles of the player’s color are flipped.
14+
15+
- If standalone script, short description of script explaining what it achieves.
16+
17+
- List out the libraries imported.
18+
- random
19+
- sys
20+
21+
## Setup instructions
22+
23+
Download the reversegram.py and extract the files
24+
25+
Run them by double clicking it.
26+
27+
## Workflow
28+
29+
- Importing the required modules
30+
- The Game Board Data Structure
31+
- Drawing the Board Data Structure on the Screen
32+
- Creating a Fresh Board Data Structure
33+
- Checking Whether a Move Is Valid
34+
- Checking Each of the Eight Directions
35+
- Finding Out Whether There Are Tiles to Flip Over
36+
- Checking for Valid Coordinates
37+
- Getting a List with All Valid Moves
38+
- Calling the bool() Function
39+
- Getting the Score of the Game Board
40+
- Getting the Player’s Tile Choice
41+
- Determining Who Goes First
42+
- Placing a Tile on the Board
43+
- Copying the Board Data Structure
44+
- Determining Whether a Space Is on a Corner
45+
- Getting the Player’s Move
46+
- Getting the Computer’s Move
47+
- Strategizing with Corner Moves
48+
- Getting a List of the Highest-Scoring Moves
49+
- Printing the Scores to the Screen
50+
- Starting the Game and The Game Loop starts
51+
- Asking the Player to Play Again for next time.
52+
53+
## Output
54+
55+
![](https://github.com/rammya29/Awesome_Python_Scripts/blob/main/PyGamesScripts/Reversegram/Images/Image-1.png)
56+
57+
## Author(s)
58+
59+
Rammya Dharshini K
60+
61+
## Disclaimers, if any
62+
63+
None
164

0 commit comments

Comments
 (0)