Commit Diff


commit - 8fea09befa91743d4dd3bf2d411e54bdbb575601
commit + e61baf42c066ac5161fe486d6f3a2ac3b885c168
blob - e92e40c057a622750aef4768c01f0f0766ec2eb7
blob + 4a18438da9839c9a431cf3bf2f8ed897c4d4457f
--- main.c
+++ main.c
@@ -7,20 +7,20 @@
 
 # include <stdlib.h>
 # include <stdio.h>
+# include "display.c"
 
 // UNIVERSALS
 
 typedef enum     { hearts, diamonds, clubs, spades } Suits ;
-char *suits[4] = { "♥ " , "♦ ",   "♧ ",   "♤ " } ;
-const Suits trump_suit ;
-char *stdrds[8] = { " 7", " 8", " 9", " J", " Q", " K", "10", " A" } ;
-int v_std[8] =    {   0,    0,    0,    2,    3,    4,   10,   11  } ;
-char *trumps[8] = { " 7", " 8", " Q", " K", "10", " A", " 9", " J" } ;
-int v_trp[8] =    {   0,    0,    3,    4,   10,   11,   14,   20  } ;
+const char *suits[4] = { "♥ " , "♦ ",   "♧ ",   "♤ " } ;
+const char *stdrds[8] = { " 7", " 8", " 9", " J", " Q", " K", "10", " A" } ;
+const int v_std[8] =    {   0,    0,    0,    2,    3,    4,   10,   11  } ;
+const char *trumps[8] = { " 7", " 8", " Q", " K", "10", " A", " 9", " J" } ;
+const int v_trp[8] =    {   0,    0,    3,    4,   10,   11,   14,   20  } ;
 
 typedef struct {
 	int rank ;
-	int suit ;
+	Suits suit ;
 } Card ;
 
 typedef struct {
@@ -41,36 +41,54 @@ typedef struct {
 	Suit suit_spades ;
 } Deck ;
 
+typedef struct {
+	Card card1 ;
+	Card card2 ;
+	Card card3 ;
+	Card card4 ;
+} Trick ;
+
+typedef struct {
+	Trick trick1 ;
+	Trick trick2 ;
+	Trick trick3 ;
+	Trick trick4 ;
+	Trick trick5 ;
+	Trick trick6 ;
+	Trick trick7 ;
+	Trick trick8 ;
+} Round ;
+
 // PARTICULARS
 
 typedef struct {
+	Card card1 ;
+	Card card2 ;
+	Card card3 ;
+	Card card4 ;
+	Card card5 ;
+	Card card6 ;
+	Card card7 ;
+	Card card8 ;
+} Hand ;
+
+typedef struct {
 	int player_n ; // 0 = NULL
 	int teammate ; // if 1 -> 3 ; if 2 -> 4 ; and vice-versa
 	Hand hand ;
 	int strategy ; //= 1 // 0, 1, 2, 3 = boss, classic/default, batlaizan (mine), beginner/cautious
 } Player1, Player2, Player3, Player4 ; //; typedef struct player Player ;
 
-typedef struct {
-	Card card1 ;
-	Card card2 ;
-	Card card3 ;
-	Card card4 ;
-	Card card5 ;
-	Card card6 ;
-	Card card7 ;
-	Card card8 ;
-} Hand ;
-
 // GAME
 
-int main() {
+void main() {
 	
-	return 0 ;
+	const Suits trump_suit ;
+	
 }
 
-/* shuffle/cut */
-
 /* deal  */ 
+	/* shuffle/cut */
 	/* bargain 1,2 (3,4) */
 
 /* trick */