Skip to content

Commit 0e82f5d

Browse files
committed
readme
1 parent ff8f17f commit 0e82f5d

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

movegen.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,4 +264,4 @@ func genMovesFromTargets(moveList *[]Move, origin Square, targets uint64) {
264264
move.Setfrom(origin).Setto(Square(target))
265265
*moveList = append(*moveList, move)
266266
}
267-
}
267+
}

movegen_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,8 @@ func TestQueenPositions(t *testing.T) {
217217
positions := map[string]int{
218218
"rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq -": 0,
219219
"rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR b KQkq -": 0,
220-
"6nq/6p1/2B4n/1rB2r1R/5q2/2P5/1Q4n1/2B5 w - -": 12,
221-
"6nq/6p1/2B4n/1rB2r1R/5q2/2P5/1Q4n1/2B5 b - -": 21,
220+
"6nq/6p1/2B4n/1rB2r1R/5q2/2P5/1Q4n1/2B5 w - -": 12,
221+
"6nq/6p1/2B4n/1rB2r1R/5q2/2P5/1Q4n1/2B5 b - -": 21,
222222
}
223223
for k, v := range positions {
224224
moves := make([]Move, 0, 45)

readme.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0)
22
![Build Status](http://img.shields.io/travis/dylhunn/dragontooth-movegen.svg)
3+
[![Documentation](https://img.shields.io/badge/Documentation-GoDoc-green.svg)](https://godoc.org/github.com/dylhunn/dragontooth-movegen)
34

45

56
Dragontooth Movegen | Dylan D. Hunn
@@ -28,11 +29,11 @@ This project requires Go 1.9. As of the time of writing, 1.9 is still a pre-rele
2829

2930
To use this package in your own code, make sure your `GO_PATH` environment variable is correctly set, and install it using `go get`:
3031

31-
code example forthcoming
32+
go get github.com/dylhunn/dragontooth-movegen
3233

3334
Then, you can include it in your project:
3435

35-
import "github.com/dylhunn/movegen"
36+
import "github.com/dylhunn/dragontooth-movegen"
3637

3738
Alternatively, you can clone it yourself:
3839

@@ -42,12 +43,12 @@ Alternatively, you can clone it yourself:
4243
Documentation and examples
4344
==========================
4445

45-
You will soon be able to find the documentation [here](#).
46+
You can find the documentation [here](https://godoc.org/github.com/dylhunn/dragontooth-movegen).
4647

4748
Here is a simple example invocation:
4849

4950
board := movegen.ParseFen("1Q2rk2/2p2p2/1n4b1/N7/2B1Pp1q/2B4P/1QPP4/4K2R b K e3 4 30")
5051
moveList := board.GeneratePseudolegalMoves()
5152
for _, curr := range moveList {
52-
fmt.Println("Moved to: %v", movegen.IndexToAlgebraic(curr.To()))
53+
fmt.Println("Moved to: %v", dragontoothmg.IndexToAlgebraic(curr.To()))
5354
}

0 commit comments

Comments
 (0)