https://github.com/james-beans/py-nac
Noughts-And-Crosses/Tic-Tac-Toe in Python.
https://github.com/james-beans/py-nac
compiled-with-nuitka noughts-and-crosses noughtsandcrosses nuitka py-nac python tic-tac-toe tictactoe
Last synced: 3 months ago
JSON representation
Noughts-And-Crosses/Tic-Tac-Toe in Python.
- Host: GitHub
- URL: https://github.com/james-beans/py-nac
- Owner: james-beans
- License: gpl-3.0
- Created: 2024-11-04T23:17:59.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-11-06T23:57:44.000Z (11 months ago)
- Last Synced: 2025-02-01T14:21:41.279Z (8 months ago)
- Topics: compiled-with-nuitka, noughts-and-crosses, noughtsandcrosses, nuitka, py-nac, python, tic-tac-toe, tictactoe
- Language: Python
- Homepage:
- Size: 78.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PY-NAC
Noughts-And-Crosses/Tic-Tac-Toe in **[Python](https://python.org)**.
> [!CAUTION]
> The compiled versions of this all have false-flagged on at least 1 antivirus. This was checked through [virustotal](https://virustotal.com).> [!CAUTION]
> Because of these false flags the compiled executables will not be given out on their own. You will ***have to*** compile them yourself or use the [python file](/main.py) on it's own if you want to use this.> [!CAUTION]
> The link to the virustotal checks are [here for windows](https://www.virustotal.com/gui/file/704dfa491d7321ffa73d7fc81103d08f8f494f71110d4f28a5d77871429f74da) and non-existant for Linux.
> [!TIP]
> You will need the [fonts folder](/fonts) for the fonts used in the project. These fonts are not made by me they are made by Google (the company) for their logos but I decided to use it still. The font used is called `Product Sans`.## Dependencies:
- **[Python](https://python.org)** (You probably already have this installed already.)
- If you're not sure you have Python installed check your system packages for Linux and Mac and run the command `Python3`.
- Or if you're not sure on Windows, check your system PATH variables to see if you have it or run the command `py` to check.
- To exit the **[Python](https://python.org)** shell/console that is built-in with **[Python](https://python.org)** type `exit()`.> [!WARNING]
> **[Python](https://python.org)** is needed for even just running the pre-compiled executable from the releases.### Python import dependencies:
- **[Tkinter](https://docs.python.org/3/library/tkinter.html)** (built in with **[Python](https://python.org)** but might need an install using `sudo apt-get install python3-tk` for Linux)
- **[Turtle](https://docs.python.org/3/library/turtle.html)** (built in with **[Python](https://python.org)**)
- **[Numpy](https://numpy.org/)** (external; download with pip: `pip install numpy`)
> [!TIP]
> You can use a different compiler like **[Pyinstaller]()** if **[Nuitka](https://nuitka.net/)** doesn't work but it is unrecommended because of the generated executables being false-flagged by antiviruses.> [!WARNING]
> You will need a few more things for **[Nuitka](https://nuitka.net/)** to work properly. Like a C compiler. See a **[list of those things here](https://nuitka.net/user-documentation/user-manual.html#requirements)**.### Python compiling dependencies:
- **[Nuitka](https://nuitka.net/)** (external (for compiling); download with pip: `pip install nuitka`)
> [!WARNING]
> I will **not** be providing commands for other python compilers apart from **[Nuitka](https://nuitka.net/)**.> [!WARNING]
> The Linux command will ***not*** be ***tested*** as I don't have enough time.## Compile commands:
### Linux (not tested): `nuitka --standalone --onefile --enable-plugin=tk-inter --enable-plugin=numpy --include-data-files="fonts/ProductSans-Regular.ttf=fonts/ProductSans-Regular.ttf" main.py`### Windows (tested): `nuitka --standalone --onefile --enable-plugin=tk-inter --enable-plugin=numpy --include-data-files="fonts/ProductSans-Regular.ttf=fonts/ProductSans-Regular.ttf" main.py`