added the URL

This commit is contained in:
Falko Victor Habel 2024-05-19 17:38:31 +02:00
parent 57769a9b5f
commit e7e9463789
1 changed files with 11 additions and 7 deletions

View File

@ -1,19 +1,24 @@
# TICTACTOE in GO # Tic-Tac-Toe in Go
#### Video Demo: <URL HERE> #### Video Demo: https://youtu.be/-IJmxy8wxKw
#### Description: #### 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. 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 ## 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. - `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:
- 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 ```bash
go get fyne.io/fyne/v2@latest go get fyne.io/fyne/v2@latest
go install fyne.io/fyne/v2/cmd/fyne@latest go install fyne.io/fyne/v2/cmd/fyne@latest
``` ```
## How to run the application ## 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: 1. Clone the repository:
Open your terminal and run the following command to clone the TicTacToe repository to your local machine: Open your terminal and run the following command to clone the TicTacToe repository to your local machine:
```bash ```bash
@ -31,8 +36,7 @@ go mod tidy
``` bash ``` bash
go run main.go 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:s
- Build the executable: After installing the dependencies, you can build an executable file for your operating system using the go build command:
```bash ```bash
# Windows: # Windows:
fyne package -os windows -icon ./resources/icon.png fyne package -os windows -icon ./resources/icon.png