manuelboesl / durak_card_game Goto Github PK
View Code? Open in Web Editor NEWPython implementation of the durak card game
License: MIT License
Python implementation of the durak card game
License: MIT License
I found an interesting Bug.
After dragging a card or more to the middle play area and then double clicking in the middle of the screen, the game either resets or cloeses.
In the main playing area (the middle mats) it should be possible to stack two cards on top of each other with a vertical and/or horizontal offset.
For the beginning rules don't matter.
Only then create a new mat on the right.
Maybe add simple readme file and rewrite docu in some places. Do this, after bugs are fixed
Clean up the code. Move game logic class (maybe even possible to delete it). Do this, after all bugs are fixed
Currently the front of the card is shown in the deck, but not the back
After all the cards were taken from the not yet played stack an error occures
Cards and other sprites like mats must be scaled to fit the screen size
bot gives a trump card even though it can give a normal card
In the current state it is possible to press the buttons even though it is against the rules
After choosing to play from the main screen there should be a start button with the game blurred in the backgraund, after pressing it there should be an animation as the cards are being give to each of the players (playert/bot)
It would be nice to have a winning and losing screen after the game finishes in which you can choose to restart the game or to got to the menu
Currently we use the properties directly in many cases, which could change the property even though we don't want to. To prevent this, we need getters (and setters).
E.g. change help_list = computer.cards to help_list = computer.get_cards().
Now we have a copy and not the cards directly.
Hopefully this fixes some strange problems i ran into during making the game_logic
The computer is pretty fast and for beginners it's probably hard to tell whether a move was done. So an idication like a simple text field would be nice.
Create extra class for bot
Rename of attributes
It shouldn't be possible to see the card faces of the computer
Cards which the user and the computer have from the beginning on are always the same
must have rules and some type of animation for the background
After the player or the computer can't defend anymore, there should be the possibility to add more cards to the main area.
After startin the game for example and pressing esc, it isn't possible to play again or to check out the rules
There is a new animation version, but with old bugs (e.g. can't place card on new mat on start of game, empty min in easy mode etc...).
Please look through the code.
The animation is too slow and is currently only available for the player and bot when adding cards.
The cards and mats should only be removed when the card was moved to a new mat. Maybe it's only possible to add this after there is a game logic
There is a bug, main view doesn't show
If there is a card on the mat, it shouldn't be possible to put another card on top of it
Maybe a menu / start screen is a good idea.
I think two buttons (play/exit) should be enough for the beginning
There should be clearly divided areas:
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.