mastermind
所属分类:人工智能/神经网络/深度学习
开发工具:Elixir
文件大小:7KB
下载次数:0
上传日期:2020-10-12 06:11:49
上 传 者:
sh-1993
说明: 主谋,有两种设置的mastermind游戏。你可以通过控制台自己玩游戏,也可以让遗传算法玩...
(Mastermind game with two settings. You can play the game yourself via the console or have the Genetic Algorithm play it for you (guesses in average ~4 steps) and crush your self-confidence.)
文件列表:
.formatter.exs (97, 2020-10-12)
lib (0, 2020-10-12)
lib\genetic_algorithm (0, 2020-10-12)
lib\genetic_algorithm\solver.ex (6343, 2020-10-12)
lib\mastermind.ex (28, 2020-10-12)
lib\mastermind (0, 2020-10-12)
lib\mastermind\game.ex (1400, 2020-10-12)
lib\mastermind\user_interface.ex (1163, 2020-10-12)
lib\mix (0, 2020-10-12)
lib\mix\tasks (0, 2020-10-12)
lib\mix\tasks\run_console_game.ex (158, 2020-10-12)
lib\mix\tasks\run_genetic_algorithm.ex (148, 2020-10-12)
mix.exs (578, 2020-10-12)
play.exs (30, 2020-10-12)
test (0, 2020-10-12)
test\mastermind_test.exs (71, 2020-10-12)
test\test_helper.exs (15, 2020-10-12)
# Mastermind
Mastermind game with two settings. You can play the game yourself via the console or have the genetic algorithm play it for you (guesses in average ~4 steps) and crush your self-confidence.
Implementation based on [paper](https://lirias.kuleuven.be/bitstream/123456789/1***803/1/kbi_0806.pdf)
## Installation
If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `mastermind` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:mastermind, "~> 0.1.0"}
]
end
```
Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
be found at [https://hexdocs.pm/mastermind](https://hexdocs.pm/mastermind).
## Running the Game
To play the game yourself from the console, run:
`mix run_console_game`
Feeling lazy? To have the genetic algorithm play the game for you, run:
`mix run_genetic_algorithm`
近期下载者:
相关文件:
收藏者: