prev. +
This commit is contained in:
parent
1a990ddefc
commit
0adfbc9eba
8
Makefile
8
Makefile
@ -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})
|
||||
|
@ -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
15
src/ClientProgram.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
@ -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
15
src/ServerProgram.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user