/PY-NAC

Noughts-And-Crosses/Tic-Tac-Toe in Python.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

PY-NAC

Noughts-And-Crosses/Tic-Tac-Toe in Python.


Caution

The compiled versions of this all have false-flagged on at least 1 antivirus. This was checked through virustotal.

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 on it's own if you want to use this.

Caution

The link to the virustotal checks are here for windows and non-existant for Linux.


Tip

You will need the fonts folder 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 (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 shell/console that is built-in with Python type exit().

Warning

Python is needed for even just running the pre-compiled executable from the releases.

Python import dependencies:

  • Tkinter (built in with Python but might need an install using sudo apt-get install python3-tk for Linux)
  • Turtle (built in with Python)
  • Numpy (external; download with pip: pip install numpy)

Tip

You can use a different compiler like Pyinstaller if Nuitka 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 to work properly. Like a C compiler. See a list of those things here.

Python compiling dependencies:

  • Nuitka (external (for compiling); download with pip: pip install nuitka)

Warning

I will not be providing commands for other python compilers apart from Nuitka.

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