The target testing environment is iOS 11.2 running on an iPhone 8 plus.Ĭurrently, the application exhibits some but not all aspects of functionality.Īlthough the functionality is limited, the design of the existing code lends well to extensibility. The Game class acts as the Model, the View Controller class as the Controller and the UIView class as the View.ĭurak was developed in XCode version 9.2 with Swift 4 programming language. The fundamental architecture of the application is based on the Model-View Controller design pattern (MVC). The bouts continue until the deck is finished, and the player to finish without cards in their hand wins, the other is the fool. If the defender beats the attacker, the roles swap, and the defender becomes the attacker. The attacker and defender must both maintain a minimum of 5 cards in their hand. If the defender takes the card, the attacker continues to put down their cards. The attacker places a card on the board, the defender can either take the card or play a card from their hand from the same suit as the attacker card that is higher in rank (trump suit beats all other cards and then when a trump is compared within the trump card’s suit 2 to Ace). Durak is comprised of smaller bouts in which one player attacks, and the other defends. In my implementation of Durak, there are two players, the human player and the computer player. Another card is revealed on the board for all players to see, this card is the trump suit. The game begins with each player being dealt 5 cards. The one who has cards in their deck is the Durak, or the Fool. The objective of the game is to finish with zero remaining cards in one’s personal hand. Implementation of a card game for University of Bologna, Mobile Applications Laboratory.ĭurak, or Fool in English, is a popular card game in Russia and other post-soviet countries.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |