mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 16:53:09 +00:00
Remove namespace
This commit is contained in:
parent
1a99a7df80
commit
eb29c75693
2 changed files with 3 additions and 8 deletions
|
@ -1,13 +1,8 @@
|
||||||
namespace Bitboards { void init(); }
|
|
||||||
|
|
||||||
int A[8];
|
int A[8];
|
||||||
int B[8];
|
int B[8];
|
||||||
int C;
|
int C;
|
||||||
|
|
||||||
/// Bitboards::init() initializes various bitboard tables. It is called at
|
void init() {
|
||||||
/// startup and relies on global objects to be already zero-initialized.
|
|
||||||
|
|
||||||
void Bitboards::init() {
|
|
||||||
|
|
||||||
for (int f = 0; f <= 7; ++f)
|
for (int f = 0; f <= 7; ++f)
|
||||||
A[f] = f > 0 ? A[f - 1] << 1 : 0x01010101;
|
A[f] = f > 0 ? A[f - 1] << 1 : 0x01010101;
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
namespace Bitboards { void init(); }
|
extern void init();
|
||||||
int main() { Bitboards::init(); }
|
int main() { init(); }
|
||||||
|
|
Loading…
Add table
Reference in a new issue