https://github.com/findmyway/connectfoursolver.jl
https://github.com/findmyway/connectfoursolver.jl
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/findmyway/connectfoursolver.jl
- Owner: findmyway
- License: mit
- Created: 2020-04-21T07:05:10.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-21T07:07:41.000Z (about 5 years ago)
- Last Synced: 2025-03-10T18:14:45.510Z (4 months ago)
- Language: Julia
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ConnectFourSolver
[](https://travis-ci.com/findmyway/ConnectFourSolver.jl)
This package provides a Julia wrapper for [PascalPons/connect4](https://github.com/PascalPons/connect4).
# Usage
```julia
using ConnectFourSolversolver = Solver()
book = get_book()
load_book(solver, book)p = Position()
solver(p) # 1for x in 0:6
p′ = copy(p)
p′(x)
println(solver(p′))
end# 2
# 1
# 0
# -1
# 0
# 1
# 2
```