Giter Club home page Giter Club logo

durak_card_game's People

Contributors

bobby-robotics avatar manuelboesl avatar

Watchers

 avatar  avatar

durak_card_game's Issues

Game resets / cloeses after double click

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.

Offset for main playing area

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.

Docu

Maybe add simple readme file and rewrite docu in some places. Do this, after bugs are fixed

Refactoring

Clean up the code. Move game logic class (maybe even possible to delete it). Do this, after all bugs are fixed

Error in endgame

After all the cards were taken from the not yet played stack an error occures

Add Start Button

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)

Add winning / losing screen

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

Add getter

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

Indication if user must play

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.

cards aren't shuffled

Cards which the user and the computer have from the beginning on are always the same

Menu View

must have rules and some type of animation for the background

Add more cards after take

After the player or the computer can't defend anymore, there should be the possibility to add more cards to the main area.

refactor-new-animation

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.

Fix animation

The animation is too slow and is currently only available for the player and bot when adding cards.

Cards shouldn't stack

If there is a card on the mat, it shouldn't be possible to put another card on top of it

Add menu screen

Maybe a menu / start screen is a good idea.
I think two buttons (play/exit) should be enough for the beginning

Rearrange play area

There should be clearly divided areas:

  • Once for the player
  • Once for the computer
  • Once in the middle for both
  • Stack of cards in the middle, not bottom left

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.