This commit is contained in:
anon 2022-11-22 03:42:46 +01:00
parent 1a990ddefc
commit 0adfbc9eba
5 changed files with 41 additions and 34 deletions

View File

@ -2,7 +2,7 @@
CC:=mcs
SRCD:=src/
SRC:=Figura.cs Asztal.cs PlaccInfo.cs enum.cs
SRC:=Figura.cs Asztal.cs PlaccInfo.cs enum.cs Server.cs Client.cs
SRC:=$(addprefix ${SRCD},${SRC})
COMP:=${CC} ${SRC}
OUTPUT:=chess.exe Chess_server.exe Chess_client.exe
@ -11,13 +11,13 @@ main: server client singleplayer
@echo done
server:
${COMP} ${SRCD}/Server.cs -out:$(word 2,${OUTPUT})
${COMP} ${SRCD}/ServerProgram.cs -out:$(word 2,${OUTPUT})
client:
${COMP} ${SRCD}/Client.cs -out:$(word 3,${OUTPUT})
${COMP} ${SRCD}/ClientProgram.cs -out:$(word 3,${OUTPUT})
singleplayer:
${COMP} ${SRCD}/SinglePlayer.cs -out:$(word 1,${OUTPUT})
${COMP} ${SRCD}/Program.cs -out:$(word 1,${OUTPUT})
run:
mono $(word 2,3,${OUTPUT})

View File

@ -1,20 +1,5 @@
using System;
using System.Collections.Generic;
#region progi
//###########################
// ¤¤¤ Execution Entry ¤¤¤
//###########################
class Program{
static Random r = new Random();
static void Main(string[] args){
Asztal tabla = new Asztal(Jatekmod.klasszikus);
while(true){
tabla.print();
tabla.mozgat();
}
}
}
#endregion
class Client{
}

15
src/ClientProgram.cs Normal file
View File

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
class Program{
static Random r = new Random();
static void Main(string[] args){
Asztal tabla = new Asztal(Jatekmod.klasszikus);
while(true){
tabla.print();
tabla.mozgat();
}
}
}

View File

@ -1,15 +1,7 @@
using System;
using System.Collections.Generic;
class Program{
static Random r = new Random();
static void Main(string[] args){
Asztal tabla = new Asztal(Jatekmod.klasszikus);
while(true){
tabla.print();
tabla.mozgat();
}
}
class Server{
static List<Client> = new list<Client>;
}

15
src/ServerProgram.cs Normal file
View File

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
class Program{
static Random r = new Random();
static void Main(string[] args){
Asztal tabla = new Asztal(Jatekmod.klasszikus);
while(true){
tabla.print();
tabla.mozgat();
}
}
}