-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChess.cs
More file actions
67 lines (59 loc) · 2.08 KB
/
Chess.cs
File metadata and controls
67 lines (59 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
using System;
// using System.Collections.Generic;
// using System.Linq;
// using System.Text;
// using System.Threading.Tasks;
namespace ChessBitboard{
public class Chess{
public static void Main (){
BoardGeneration.initiateStdChess();
//
// Følgende er brugt til at metaprogrammere BitSpan.cs
//
/*
Console.WriteLine("public static UInt64[] Knight = new UInt64[64];");
for(int i = 1; i<19; i++){
if((i+17) % 8 < 4){
UInt64 printx = Moves.kingSpan >> i;
printx = printx & ~Moves.fileGH;
Console.Write($"{printx},");
// BoardGeneration.drawBitboard(printx);
// Console.Read();
}else{
UInt64 printx = Moves.kingSpan >> i;
printx = printx & ~Moves.fileAB;
Console.Write($"{printx},");
// BoardGeneration.drawBitboard(printx);
// Console.Read();
}
}
Console.WriteLine();
for(int i = 0; i<64-18;i++){
if((i+18) % 8 < 4){
UInt64 printx = Moves.kingSpan << i;
printx = printx & ~Moves.fileGH;
Console.Write($"{printx},");
// BoardGeneration.drawBitboard(printx);
// Console.Read();
}else{
UInt64 printx = Moves.kingSpan << i;
printx = printx & ~Moves.fileAB;
Console.Write($"{printx},");
// BoardGeneration.drawBitboard(printx);
// Console.Read();
}
}
*/
/*
int count = 0;
foreach(UInt64 n in Span.Knight ){
BoardGeneration.drawBitboard(n);
Console.WriteLine(n);
Console.WriteLine(count);
Console.ReadKey(true);
count++;
}
*/
}
}
}