Skip to content

Commit 8c48fac

Browse files
chore: add blog link and additional images in README
Signed-off-by: Aditya Agarwal <aditya.agarwal030504@gmail.com>
1 parent db45fe2 commit 8c48fac

File tree

5 files changed

+11
-0
lines changed

5 files changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ Most 3.5" TFT LCD Touch displays use the ILI9486 Display Driver and include a re
2424

2525
The program has been written using PlatformIO, and has been tested on the [Arduino UNO R3](https://docs.arduino.cc/hardware/uno-rev3/), [Arduino UNO R4 Minima](https://docs.arduino.cc/hardware/uno-r4-minima/) & [Arduino UNO R4 WiFi](https://docs.arduino.cc/hardware/uno-r4-wifi/).
2626

27+
> [!TIP]
28+
> A detailed tutorial on how to use this repository is available at https://dumblebots.com/2024/08/05/using-3-5-tft-lcd-display-ili9486-arduino-part-6-tictactoe-game/. The tutorial includes a comprehensive explanation of the code and how to use it.
29+
2730
## Building/Uploading With PlatformIO
2831

2932
Since this project has been written using PlatformIO by default, simply run the following commands to fetch the libraries, build the project and upload the program -
@@ -52,10 +55,18 @@ Run the program given in [this](https://github.com/Aditya-A-garwal/Arduino-TFT-L
5255

5356
As soon as the program is uploaded, the display should turn black and a menu should appear, prompting the player to select between X and O.
5457

58+
|![Image of starting menu on 3.5 inch TFT LCD touchscreen and Arduino](images/start_menu.png)|
59+
|:-:|
60+
|Starting Menu|
61+
5562
After an option is selected, the game begins. X moves first, followed by O, with the process repeating till a tie occurs or one of the players wins.
5663

5764
When a game is over, a line is drawn over the winning 3 pieces, followed by a game-over screen that announces the winner.
5865

66+
|![Image of arduino winning as X on 3.5 inch TFT LCD touchscreen and Arduino](images/arduino_x.png)|![Image of player winning as O on 3.5 inch TFT LCD touchscreen and Arduino](images/player_o.png)|![Image of game draw on 3.5 inch TFT LCD touchscreen and Arduino](images/game_draw.png)|
67+
|:-:|:-:|:-:|
68+
|X wins|O wins|Draw|
69+
5970
For now, the moves chosen by the Arduino (opponent) are randomized, i.e. it will not follow a winning strategy. This means that if a player has a winning move that can be blocked by the Arduino, it may not necessarily pick that move. This is expected behavior.
6071
Additionally, the random number generator always begins with the same seed, i.e. two games where the player plays the same moves will always end the same.
6172

images/arduino_x.png

1.06 MB
Loading

images/game_draw.png

1.05 MB
Loading

images/player_o.png

1.03 MB
Loading

images/start_menu.png

1010 KB
Loading

0 commit comments

Comments
 (0)