added the URL
This commit is contained in:
parent
57769a9b5f
commit
e7e9463789
18
README.md
18
README.md
|
@ -1,19 +1,24 @@
|
|||
# TICTACTOE in GO
|
||||
#### Video Demo: <URL HERE>
|
||||
# Tic-Tac-Toe in Go
|
||||
#### Video Demo: https://youtu.be/-IJmxy8wxKw
|
||||
#### Description:
|
||||
|
||||
|
||||
This Tic-Tac-Toe game is a simple single-player experience where the player takes on a computer-controlled opponent. The goal of the game is to make a horizontal, vertical, or diagonal line of their chosen symbol (X or O) on a 3x3 grid. The game ends when one player successfully achieves three marks in a row or when all spaces are filled, resulting in a draw if neither player has achieved this condition.
|
||||
|
||||
## Prerequisites
|
||||
|
||||
`Go` programming language installed on your machine: To run the TicTacToe application, you need to have the Go programming language installed on your computer. You can download and install Go from the official website (https://golang.org/dl/). Follow the instructions for your specific operating system to set up the Go environment.
|
||||
`Fyne` framework for building cross-platform GUI applications: The application uses the Fyne framework to create the graphical user interface (GUI) for the TicTacToe game. You can install the Fyne framework using the following command:
|
||||
- `Go` programming language installed on your machine: To run the TicTacToe application, you need to have the Go programming language installed on your computer. You can download and install Go from the official website (https://golang.org/dl/). Follow the instructions for your specific operating system to set up the Go environment.
|
||||
|
||||
- To install the `Fyne` framework and ensure the game's smooth operation, two essential components are required: C compiler (for interfacing with system graphics drivers), and a system graphics driver.
|
||||
|
||||
You can install the Fyne framework using the following commands in your terminal:
|
||||
```bash
|
||||
go get fyne.io/fyne/v2@latest
|
||||
go install fyne.io/fyne/v2/cmd/fyne@latest
|
||||
```
|
||||
## How to run the application
|
||||
Please be aware that for some platforms, you may need to install external dependencies to ensure proper functionality.
|
||||
|
||||
You can find more detailed information about these dependencies and how to install here: [dependencies](https://docs.fyne.io/started/cross-compiling.html).
|
||||
1. Clone the repository:
|
||||
Open your terminal and run the following command to clone the TicTacToe repository to your local machine:
|
||||
```bash
|
||||
|
@ -31,8 +36,7 @@ go mod tidy
|
|||
``` bash
|
||||
go run main.go
|
||||
```
|
||||
|
||||
- Build the executable: After installing the dependencies, you can build an executable file for your operating system using the go build command:
|
||||
- Build the executable: After installing the dependencies, you can build an executable file for your operating system using the go build command:s
|
||||
```bash
|
||||
# Windows:
|
||||
fyne package -os windows -icon ./resources/icon.png
|
||||
|
|
Loading…
Reference in New Issue