https://github.com/netpyoung/cljpyoung.landoflisp
π½ Land of Lisp for Clojure
https://github.com/netpyoung/cljpyoung.landoflisp
clojure clojurescript landoflisp lisp svg
Last synced: 2 months ago
JSON representation
π½ Land of Lisp for Clojure
- Host: GitHub
- URL: https://github.com/netpyoung/cljpyoung.landoflisp
- Owner: netpyoung
- License: epl-1.0
- Created: 2018-12-23T14:45:36.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-06T19:38:18.000Z (over 6 years ago)
- Last Synced: 2025-02-13T21:45:08.089Z (4 months ago)
- Topics: clojure, clojurescript, landoflisp, lisp, svg
- Language: Clojure
- Homepage:
- Size: 53.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cljpyoung.landoflisp
* https://github.com/robjens/boot-reframe-10x
* https://github.com/Day8/re-frame-10x/issues/196
* https://clojars.org/cljsjs/create-react-class
* https://www.youtube.com/watch?v=JCY_cHzklRs* TODO: https://github.com/Day8/re-com

* ch05 - https://github.com/netpyoung/cljpyoung.spels/blob/master/src/cljpyoung/spels.clj
# Ref.
* http://landoflisp.com/source.html
* https://github.com/quux00/land-of-lisp-in-clojure/blob/master/grand-theft-wumpus/src/thornydev/wumpus/game.clj
* https://github.com/bitsai/book-exercises/blob/master/Land%20of%20Lisp%20(in%20Clojure)/ch8/wumpus.clj
* http://derekmcloughlin.github.io/2014/09/13/Haskell-Dice-Of-Doom-Part-1/
* http://derekmcloughlin.github.io/2014/10/04/Haskell-Dice-Of-Doom-Part-2/
* http://derekmcloughlin.github.io/2014/11/02/Haskell-Dice-Of-Doom-Part-3/# ch15
2x2```
player: int
dice : inttree {
:player player
:board [[player dice]]
:moves [move ...]
}move {
:action ([from to] | nil)
:tree tree
}
```κ²μμ΄μ λμ¬ μ μλ κ²½μ°μ μλ₯Ό λͺ¨λ κ³μ°νλ€.
Game Tree
2x2μμλ μΆ©λΆν κ°λ₯νλ
3x3λΆν°λ κ³μ°νλλ° λ§μ μκ°μ΄ κ±Έλ¦°λ€.16 - macro
17 - svg lib18μ₯ μμλ
μ§μ°νκ°λ‘ λͺ¨λ λ€ κ³μ°νλκ² μλλΌ νμν λ§νΌλ§ κ³μ°νλλ‘ λ°κΎΌλ€.
contextλ§ λ€κ³ μκ³ νκ°λ 미루λ κ²μ΄λ€.
lazy evaluationtrimming
Heuristicshttp://popungpopung.tistory.com/10
[A simple animation of the Minimax algorithm](https://www.youtube.com/watch?v=zDskcx8FStA)
[Step by Step: Alpha Beta Pruning](https://www.youtube.com/watch?v=xBXHtz4Gbdo)
aIλ λ€μ΄κ°λ€.
λͺμ μμ 미리 κ³μ°νμ¬ μ΅μ μ μ νμ νλλ‘ νλ€.
minimax μκ³ λ¦¬μ¦
https://en.wikipedia.org/wiki/Minimax
μλνΈμκ²λ μ΄κΈΈ μ μλ νμ¨μ΄ μ μ min
λμκ²λ μ΄κΈΈ μ μλ νμ¨μ΄ λμ max
νκ³μ
λͺ¨λ λμλ΄μΌν¨alpha-beta prune
alpha cut-off λ μμ μ΄ μλλ°©λ³΄λ€ λΆλ¦¬νμ¬, μμ μ΄ κ·Έ κ²½μ°λ₯Ό μ ννμ§ μμ λ λΆνμν μ°μ°μ μλΌλ΄λ κ²μ΄κ³
Beta cut-off λ μμ μ΄ μλλ°©λ³΄λ€ μ 리νμ¬, μλλ°©μ΄ κ·Έ κ²½μ°λ₯Ό μ ννμ§ μμ νλ₯ μ΄ λμ λ λΆνμν μ°μ°μ μλΌλ΄λ κ²μ΄λ€. λμ μ°¨μ΄μ μ μ μμλμ19μ₯
svg / webserver20μ₯
AIλ μ΄λ―Έ 4μΈμ© κ²μμ μ μ
6κ° tileμ λν μ£Όμ¬μμ μ΅λ κ°―μλ₯Ό 3μμ 5λ‘ λλ ΈμΌλ©°, AI λ 벨μ 4μμ 2λ‘ μ€μμ΅λλ€