Skip to content

fixed 2048_Game.py.#182

Open
Wiz-Rayyan wants to merge 1 commit intoSubhradeep10:mainfrom
Wiz-Rayyan:patch-1
Open

fixed 2048_Game.py.#182
Wiz-Rayyan wants to merge 1 commit intoSubhradeep10:mainfrom
Wiz-Rayyan:patch-1

Conversation

@Wiz-Rayyan
Copy link

running this game was giving this error: Traceback (most recent call last):
File "G:\เอกสาร\responsive-website\3.py", line 216, in
game2048 = Game( gamepanel)
^^^^^^^^^^^^^^^^
TypeError: Game() takes no arguments

it was due to doublescore not used in dunder method. so did a small changes: Changed init to init in both classes. the game is not that exciting in next comit and pr I shall make a more playable game. May You have a fun and happy life for doing good work.

running this game was giving this error: Traceback (most recent call last):
  File "G:\เอกสาร\responsive-website\3.py", line 216, in <module>
    game2048 = Game( gamepanel)
               ^^^^^^^^^^^^^^^^
TypeError: Game() takes no arguments

it was due to doublescore not used in dunder method. so did a small changes:  Changed _init_ to __init__ in both classes. 
the game is not that exciting in next comit and pr I shall make a more playable game. May You have a fun and happy life for doing good work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments