Skip to content

My first introduction to swift and app development. The app replicates the card game war with a fully functioning deck of cards, restart function, and bot for the player to play against.

Notifications You must be signed in to change notification settings

Ctrl-Sky/WarApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WarApp

WarApp is my first introduction to Swift and app development. This app replicates the card game war, with a fully functioning deck of 52 cards that keeps track of what has been removed from the deck and what cards are left in play through the use of classes and arrays. On top of that, a score tracker that declares the winner once every card is played and a restart function that resets the state of the game and allows the player to play again. This app focuses on Swiftui's navigation stack, the flow of logic, struct and classes, environments, working in different views, and UIDesign. To preview the app on a device continue reading below.

This is the game screen where the game is played by pressing "deal" and a new set of cards will appear and the score will be appropriately calculated. The rules are also available to read on the question mark button.

The rules screen experiments with Swift's tab view and follows the structure of page view, model and screen.

Screen 1 Screen 2 Screen 3

Finally, the game over screen plays around with Swift's sheet and presentation mode to make the game over screen pop up.

About

My first introduction to swift and app development. The app replicates the card game war with a fully functioning deck of cards, restart function, and bot for the player to play against.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages