Game mechanics, and more specifically the basic mechanics of the game is a collection of all the Rules and rules on which the game is based. The easiest way to do this is to clear up the example of a simple board or card game.
Let's look at the rules of the Macao card game. Quote from Wiki
Players determine the order in which they will play, but it is usually clockwise. Each player receives 5 randomly selected cards, which should be held in such a way that the opponents can not know them. The remaining cards are first visible to all players, but cannot be a function card. Usually, the cards are discovered until the nonfunctional.
The general rule is to compare your own cards with the card lying on the table. If a player has a card that matches the color or figure of a card on the table, they can make that card by covering it on top of it. For example, if the table is a 5 club card, a player with 5 hearts, 10 clubs, a jack of Spades, a king of hearts, and two diamonds can place 5 hearts or 10 clubs. If a player cannot (or may not want to) make a matching card, they must instead choose one of the cards from the deck. A player can put a few cards at once with the same figure or the same color (the bottom must be the one that matches the previous), but they cannot be two cards. Theoretically, at the game, one deck can be set up to 6 or 7 cards depending on the number of jokers in the deck (2 or 3), in which case the player can play for example. 4 Queens plus 2 or 3 jokers. If a player's card is matched to the stack, the player can immediately put it on the pile (according to the "first card saves" rule). When a player wills a "ratującą card", they cannot play an additional card from their hand, for example. Throw the ratującą six together with another six from your hand. By giving up his penultimate card the player must say "Macao". If he fails to do so, and the opponents are in any way to notice and inform them, the player has to pick up 5 cards from the deck. If all the cards in the stack run out, the pile of cards taken by the players should be shuffled and reversed so that there is only one card in the stack (the same that was at the top of the stack before the shuffle).
The player who first get all his cards wins. Other players continue to play for second, third, etc.
The cards are: Fridays, six, Sevens, eights, Nines, tens, King of diamonds and King of Clubs.
Deuce and three – the next player draws as many cards as it appears on the card. If you have a card of the same value or color (only two or three, or "Bitne Kings"), you may put it down, thus forcing the next player to collect the sum of the value of the lying cards (the next player can also put Matching card, etc.). In some variants, two and three are treated as one figure, ie. You can place twos on threes (and vice versa) even if they are different in color.
Foursome – another player waits for one matchday. To defend a different four, then the number of queues is summed up and goes to the next player. The player who loses the queue, depending on the interpretation, draws a card or not. However, when player 2 is stopped and Player 1 puts the card 2, 3 or king, the card pulls player 3 (if there are only two players, depending on the variant, the war cards are not valid or player 1 himself takes the cards). There is also a variant in which a player who has become a queue can (but does not) have to pick a card from the pile in the hopes that it will be four.
Jack – a player can claim cards by their value, most often only nonfunctional. The jack is in effect for the entire matchday (including the player Zagrywającym Jack). In one interpretation, the new Jack can make a new claim, unless the previously requested card was played (for example: Player 1 played Jack and demanded a 7s, player 2 had no 7s and drew a card from the deck, which was neither a siódemką nor a jack, Player 3 played his jack on player 1 Jack and changed the request to eight, except that player 2, if the deck will draw seven, it can keep it on hand or give it to the pile).
Lady-the "Lady for all, all-to-lady" means the possibility to put a lady (especially spades) on each card, regardless of color or value (sometimes: unless the lying card prevents it, because it is a function) and to put any card on the lying queen.
"Kings of the Bitne"-these are the two kings, which cause, according to the color of the king, the previous (King of Spades) or another (King of Hearts) the player draws five cards. To defend against such a king must be put out another king who completely eliminates his power. (In some variants, the cards are summed, which is why the attacker selects 10 cards, and the Kings of hearts and spades can be blocked by corresponding queens (Hearts or spades) kings of Bitne can be put on two or three of the same color, but it can not be done in Reverse side.
Ace – a player can request a change of color (the color change by ASA applies to the next player, not the whole player queue, as in the case of a jack). Sometimes you can be defended by putting more than one card of the same value, eg. Three Fridays (last logically another color) or position another ace and change the color to another.
Sometimes a joker is also credited to the deck, which replaces any player selected by the card (including function cards, which means that you can combine e.g. Two kings of Hearts or spades). Players to reduce the element of randomness can play with the exclusion of jokers.
The nonfunctional cards are, therefore, five, six, sevens, eights, Nines, tens and kings of diamonds and clubs.
There are also modifications to these rules, such as In some areas of Poland, the principle of "Five for everything, everything for five" instead of "Lady for everything, everything for a lady", or the special property Jack of the Pik, which allows him to ignore the request for a figure or color by rzuconą the card żądaniową When the request has been met by the player previously (the same is blocked by the possibility of quitting another Jack/ASA-P. Below point. 4) or the ability to lock the Kings "ambitious" the appropriate lady (hearts in the case of the King of Hearts, the peak in the case of King of Spades). Sometimes even there is a possibility that a policy does not exist in a different version; The most common concerns are dam, which act as a card of nonfunctional kings and "ambitious", which also lose their abilities.
Based on this description, the programmer is able to write a game that will Symulowała Macao in the computer.
So the basic mechanics are the exact rules, rules and parameters of the game. It tells you exactly how all the elements of the game work and interact with each other. So it's not enough to write that planes fly. When designing the game mechanics you need to determine exactly acceleration, speed, twisting and many other parameters. The game mechanics provides the player with all the possible actions he can perform, defines goals, and conditions of the loser, tells the story (if any occurs).
When designing a game mechanic, think about the parameters that need to be adjusted or calibrated to keep them in a separate file, so that they can be easily modified. I guess you wouldn't want to browse all the game code just because you think that particular type of units moves too fast, or deals too much damage.
Also try not to design the game anymore as a program. Focus on creating the rules first. A programmer may have a better idea from you on putting in action what you think and well. Well, unless he you his game, but that's another story.