Skip to content

Commit

Permalink
Converted to nimble project
Browse files Browse the repository at this point in the history
  • Loading branch information
tsoj committed Mar 23, 2024
1 parent a8cb70d commit 3088f21
Show file tree
Hide file tree
Showing 27 changed files with 37 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ jobs:
- name: Run tests
run: |
cd Moonbird
nim c Moonbird.nim
nimble build
nimble test
nim r tests.nim
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
uai
Moonbird
Moonbird
tests/tests
13 changes: 13 additions & 0 deletions Moonbird.nimble
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Package

version = "0.1.0"
author = "Jost Triller"
description = "An Ataxx engine"
license = "MIT"
srcDir = "src"
bin = @["Moonbird"]


# Dependencies

requires "nim >= 2.1.1"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion rootSearch.nim → src/rootSearch.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import
types, position, positionUtils, move, search, hashTable, searchUtils, evaluation,
utils, movegen

import std/[os, atomics, strformat, options, sets]
import std/[strformat]

func launchSearch(position: Position, state: var SearchState, depth: Ply): int =
try:
Expand Down
4 changes: 1 addition & 3 deletions search.nim → src/search.nim
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import
types, bitboard, position, positionUtils, move, searchUtils, moveIterator, hashTable,
evaluation, utils, searchParams, movegen

import std/[atomics, options]
evaluation, utils, movegen

# static: doAssert pawn.value == 100.cp

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion searchUtils.nim → src/searchUtils.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import types, move, position, searchParams
import types, move, position

import std/[math, sets]

Expand Down
File renamed without changes.
File renamed without changes.
12 changes: 10 additions & 2 deletions uai.nim → src/uai.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
import
position, positionUtils, hashTable, searchParams, version, utils, uaiSearch, movegen,
tests, perft
position,
positionUtils,
hashTable,
searchParams,
version,
utils,
uaiSearch,
movegen,
perft,
../tests/tests

import std/[strutils, strformat]

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 7 additions & 1 deletion tests.nim → tests/tests.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import positionUtils, perft, move, movegen, version, game
import
../src/positionUtils,
../src/perft,
../src/move,
../src/movegen,
../src/version,
../src/game

import std/[strformat, terminal, options, random]

Expand Down

0 comments on commit 3088f21

Please sign in to comment.