- requirements
pip3 install numpy==1.15.4
pip3 install opencv-python==3.4.4.19
- clone repo
git clone [email protected]:yanghoJI/EndOfDecember.git
- play the game
cd 2048
python3 game2048V1.py
- flow diagram
2. calculNextArray Function
if Pi == Vi:
result_Array[Pi] = Pi + Pi
NextPi = 0
elif Pi == 0 or Vi == 0:
result_Array[Pi] = 0
NextPi = Pi + Vi
else:
result_Array[Pi] = Pi
NextPi = Vi