a replica of the famous game "XO" written in python for
CLI (command line interface)
© 2019-2022 Nurul-GC
™ArtesGC
replica do famoso jogo "XO" escrito em python para CLI (command line interface)
Home Page: https://artesgc.home.blog
License: BSD 3-Clause "New" or "Revised" License
a replica of the famous game "XO" written in python for
CLI (command line interface)
© 2019-2022 Nurul-GC
™ArtesGC
CodeFactor found an issue: Unnecessary pass statement
It's currently on:
source.py\ticTacToe_GC.py:155
CodeFactor found an issue: Unnecessary pass statement
It's currently on:
source.py\ticTacToe_GC.py:131
CodeFactor found an issue: Using the global statement
It's currently on:
source.py\ticTacToe_GC.py:115
Global variables reduce code readability and often cause bugs. Avoid global variable as much as possible.
Example of incorrect code:
WIDTH = 0 # global variable
def area(w):
global WIDTH # global statement
WIDTH = w
return WIDTH * WIDTH
One common solution for this is to create a class and to encapsulate global variables as members of an instantiated object of that class:
class Square:
def __init__(self, width):
self.width = width
def area(self):
return self.width * self.width
CodeFactor found an issue: Unnecessary pass statement
It's currently on:
source.py\ticTacToe_GC.py:75
CodeFactor found an issue: Unnecessary pass statement
It's currently on:
source.py\ticTacToe_GC.py:111
CodeFactor found an issue: Using the global statement
It's currently on:
source.py\ticTacToe_GC.py:47
Global variables reduce code readability and often cause bugs. Avoid global variable as much as possible.
Example of incorrect code:
WIDTH = 0 # global variable
def area(w):
global WIDTH # global statement
WIDTH = w
return WIDTH * WIDTH
One common solution for this is to create a class and to encapsulate global variables as members of an instantiated object of that class:
class Square:
def __init__(self, width):
self.width = width
def area(self):
return self.width * self.width
CodeFactor found an issue: Starting a process with a shell: Seems safe, but may be changed in the future, consider rewriting without shell
It's currently on:
source.py\ticTacToe_GC.py:128
Example of insecure code:
import os
os.system('/bin/echo suspicious code') \
The subprocess module provides more powerful facilities for spawning new processes and retrieving their results; using that module is preferable to using this function.
Example of secure code:
import subprocess
subprocess.call('/bin/echo suspicious code', shell=False) \
CodeFactor found an issue: Unnecessary pass statement
It's currently on:
source.py\ticTacToe_GC.py:79
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.