About RunFast

RunFast is a card game created with C#, ASP.NET, MVC5, HTML5, CSS3 and JAVASCRIPT.

RUN FAST is designed and created by Frank Li and as one of his portfolio project to illustrate his skills on relative areas.

1.1.1 There are four suits of cards in a game which are spades(♠), hearts(), clubs(♣) and diamonds().

1.1.2 There are total 48 cards in a game which are one of “2” (♠), three of “A” (all suits except ♠), four of “3”, “4”, “5”, “6”, “7”, “8”, “9”, “10”, “J”, “Q” and “K” (all suits).

1.1.3 There are total seven types of deals that you can make in a game.

1.1.3.1 Single
Single is a deal with only one card, like hearts “3”, diamonds “6”, clubs “K”, spades “2”, etc.

1.1.3.2 Pair
Pair is a deal with two cards which have the same number of pips, like spades “4” and diamonds “4”, diamonds “J” and clubs “J”, hearts “A” and clubs “A”, etc.

1.1.3.3 Triplet
Triplet is a deal with three cards which have the same number of pips.
There is an exception with triple “A”s which are considered as a bomb rather than a triplet since there are only three “A”s in a game.

1.1.3.4 Bomb
Bomb is a deal with four cards which have the same number of pips.
As 1.1.3.3 says, Triple “A”s are considered as a special bomb.

1.1.3.5 Full house
Full house is a deal with five cards which are made up of one triplet and one pair.

1.1.3.6 Straight
Straight is a deal with five or more cards which have the consecutive number of pips. For example, “3, 4, 5, 6, 7” is a straight, and “9, 10, J, Q, K” is another straight.
The cards in a straight can be in either the same suit or different suits.

1.1.3.7 Pair straight
Pair straight is a deal very similar to a straight except that it is made up of three or more pairs which have the consecutive number of pips.

1.2.1 Single
Rank for singles in ascending is “3”, “4”, “5”, “6”, “7”, “8”, “9”, “10”, “J”, “Q”, “K”, “A”, “2”.
Singles with different suits but same number of pips are at the same rank.

1.2.2 Pair
Rank for pairs in ascending is “3”, “4”, “5”, “6”, “7”, “8”, “9”, “10”, “J”, “Q”, “K”, “A”.
Pairs with different suits but same number of pips are at the same rank.

1.2.3 Triplet Rank for triplets in ascending is “3”, “4”, “5”, “6”, “7”, “8”, “9”, “10”, “J”, “Q”, “K”.

1.2.4 Bomb
Rank for bombs in ascending is “3”, “4”, “5”, “6”, “7”, “8”, “9”, “10”, “J”, “Q”, “K”, “A”.

1.2.5 Full house
Rank for full houses is decided by the triplet that the full house has, and it doesn’t matter what pair it has.

1.2.6 Straight
Rank for straight is based on the straights having the same number of cards.
Two straights which have different number of cards can’t be compared.
Straights with only one suit of cards are at the higher rank than any one with different suit of cards.
Rank for straights is decided by the ranking of the card with the highest rank in the straight.
Straights with different suits of cards have the same rank if the cards' rankings with the highest rank in the two straights are the same.
Rank for straights with only one suit of cards in ascending is diamonds(), clubs(♣), hearts() and spades(♠) if the cards' rankings with the highest rank in the two straights are the same.
"2" does not join any straight and "A" can only follow "K" in a straight, so the longest straight can be “3, …, J, Q, K, A” with total 12 cards.

1.2.7 Pair straight
Rank for pair straights is based on the pair straights having the same number of pairs of cards.
Two pair straights which have different number of pairs can’t be compared.
Rank for pair straights is decided by the ranking of the pair with the highest rank in the pair straight.

1.2.8.Different types
Different types of deals can't be compared except bombs. Bombs can deal any other types of deals and are at the higher rank.

1.3.1 A game must have three players to play with, and all players are opponents to the other two players.

1.3.2 A game may have one or more battles.

1.3.3 Each game starts by the player who holds spades 3 after shuffle and allocate.
The player can make any type of deal at any rank to start the first battle of a game.

1.3.4 Turn for players to take part in a battle is in a counterclockwise order.

1.3.5 Players can either make the same type of deal with higher rank to continue the battle.

1.3.6 Players can also make a bomb deal to continue the battle when deal with other types of deals.

1.3.7 Players can also choose "PASS" to give up their turn to make a deal.

1.3.8 A battle ends when two opponents successively choose "PASS", and the player who make the deal last wins the battle and gets a chance to start a new battle by making any type of deal at any rank.

1.3.9 A game ends when one of the players has dealt all cards, and the player wins the game.

1.4.1 When a game ends, two losers will be deducted relative points which will be added to the winner.

1.4.2 A loser will be deducted the points as the number of cards that the loser still holds when it is less than 10.

1.4.3 A loser will be deducted 50 points when the loser doesn’t deal any card in a game.

1.4.4 Otherwise, a loser will be deducted the points twice as the number of cards that the loser still holds when the game ends.

2.1.1 Local game
A local game is a game in which a user (player) plays with two computer opponents.

2.1.2 Online game
An online game is a game in which a user (player) plays with two other users (players) on the internet.
An online game provides a message bulletin board to display the messages that players post.

There are three types of players in this card game.

2.2.1 Guest player
A guest player is a player who hasn't registered in the game centre.
Guest players can only play local games.
Guest players will hold 100 initial points.
Guest players will be deducted 50 points when quitting a game that has not yet finished.

2.2.2 Registered player
A registered player is a player who has registered in the game centre.
Registered players can play both local games and online games.
Registered players will be automatically allocated a game table to play an online game.
Registered players will hold 300 initial points.
Registered players will be deducted 50 points when quitting a game that has not yet finished.

2.2.3 VIP player
A VIP player is a player who has registered in the game centre and also paid for the VIP seat.
VIP players can play both local games and online games.
VIP players can choose to be automatically allocated a game table to play an online game.
VIP players can also create a new game table and invite friends who are either registered players or VIP players to the table.
VIP players will hold 1000 initial points.
VIP players will be deducted 50 points when quitting a game that has not yet finished.

3.1.1 The time limit for starting a new game is 40 seconds. If the player who is going to start a new game does not make a deal in time, a single deal with the card at the lowest rank being held by him/her will be automatically made.

3.1.2 The time limit for starting a new battle except the first battle of a game is 30 seconds. If the player who is going to start a new battle does not make a deal in time, a single deal with the card at the lowest rank being held by him/her will be automatically made.

3.1.3 The time limit for continuing a battle is 30 seconds. If the player who gets the turn does not make a deal in time, a "PASS" deal will be automatically made.

3.2.1 Players can choose "HOST" to take a leave with 5 points deducted and let cards be played by the computer in an online game.

3.3.1 Players can click on each card to select all the cards needed to make a deal.
Players can also click on a card and hold down the mouse and then drag the mouse to select all the cards needed to make a deal.

3.3.2 Battles of single, pair, triplet or bomb types of deals

3.3.2.1 Players can click on a card to toggle its state of being selected or not being selected.
When there are just enough cards with the same number of pips as the deal needs, those cards will be toggled their state together.

3.3.2.2 Players can continue to click on other cards with different number of pips to toggle their state.

And the cards which are previously selected will automatically change to not-being-selected state at first.

3.3.3 Battles of full house deal

3.3.3.1 Players can click on a card to toggle the state of a triplet or a pair according to the number of the cards with the same pips.
A triplet is preferable.

3.3.3.2 Successive clicks will check whether a triplet or a pair is needed and automatically toggle the state of it as needed.

3.3.3.3 Players can click on a card and hold down the mouse and then drag the mouse to select all the cards needed to toggle their state.

3.3.4 Battles with straight and pair straight

3.3.4.1 Players can click on the last card or one card of the last pair in the straight or pair straight to automatically toggle the cards’ state.

3.3.4.2 Players can click on a card and hold down the mouse and then drag the mouse to select all the cards needed to toggle their state.

3.4.1 Players can "PLACE" any type of cards to start a battle.

3.4.2 Players can only "PLACE" cards at higher rank than the previous one to continue a battle.

3.4.3 Players can "PLACE" a bomb in any type of battle and the successive bomb must be at a higher rank.

3.5.1 Players must have at least 50 points to play a game.

3.5.2 Guest players will be automatically awarded 30 points for every 10 games.

3.5.3 Guest players can apply for a special subsidy of 100 points every 7 days when the points held is not enough to play a game.

3.5.4 Registered players will be automatically awarded 30 points for every 6 games.

3.5.5 Registered players can apply for a special subsidy of 200 points every 7 days when the points held is not enough to play a game.

3.5.6 VIP players will be automatically awarded 50 points for every 6 games.

3.5.7 VIP players can apply for a special subsidy of 300 points every 7 days when the points held is not enough to play a game.

3.6.1 A VIP seat costs £6.00 per month or £66.00 per year.

3.6.2 Points cost
200 points cost £1.99, 500 points cost £4.49, 1000 points cost £7.99, 2000 points cost £13.99.