From 68c170568eb4ca42db003f9769775d6e0a8e21b5 Mon Sep 17 00:00:00 2001 From: Mattia Giambirtone Date: Sun, 21 Apr 2024 11:11:28 +0200 Subject: [PATCH] Add missing license headers --- Chess/nimfish/nimfish.nim | 3 ++- Chess/nimfish/nimfishpkg/board.nim | 16 +++++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/Chess/nimfish/nimfish.nim b/Chess/nimfish/nimfish.nim index 6ff3445..ddbaeb4 100644 --- a/Chess/nimfish/nimfish.nim +++ b/Chess/nimfish/nimfish.nim @@ -21,9 +21,10 @@ import nimfishpkg/pieces import nimfishpkg/magics import nimfishpkg/rays import nimfishpkg/position +import nimfishpkg/board -export tui, misc, movegen, bitboards, moves, pieces, magics, rays, position +export tui, misc, movegen, bitboards, moves, pieces, magics, rays, position, board when isMainModule: diff --git a/Chess/nimfish/nimfishpkg/board.nim b/Chess/nimfish/nimfishpkg/board.nim index 36d5c6e..0359be0 100644 --- a/Chess/nimfish/nimfishpkg/board.nim +++ b/Chess/nimfish/nimfishpkg/board.nim @@ -1,3 +1,18 @@ +# Copyright 2024 Mattia Giambirtone & All Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +## Implementation of a simple chessboard import std/strformat import std/strutils @@ -14,7 +29,6 @@ export pieces, position, bitboards, moves, magics, rays - type Chessboard* = ref object ## A chessboard