diff --git a/stackchess.c b/stackchess.c
index 77ae8e05fd90860a0fd4bdc88a75f4787d9c7e7a..511b00da95d00adbbaceb75a09712d452bc100e5 100644
--- a/stackchess.c
+++ b/stackchess.c
@@ -1,6 +1,17 @@
-#include<stdio.h>
-#include<stdlib.h>
+#include"tableau.h"
 
-int main(){
+
+
+int main(int argc, char **argv){
+  int N = 6;
+  if (argc != 1){
+    N=strtol(argv[1],NULL,10);
+  } 
+  
+  pile **tableau=initialisation(N);
+  empiler(&(tableau[0][0]), "RN");
+  affiche(tableau,N);
+
+  nettoyer(tableau,N);
   return 0;
 }