일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- mean
- keras
- Series
- mariadb
- ipad
- Lotto
- GitHub
- E-P1
- Numpy
- RNN
- Python
- Button
- CNN
- install
- 삼성소프트웨어멤버십
- GT-S80
- dataframe
- Splunk
- synology
- SciPy
- LSTM
- pycharm
- index
- 알고리즘
- javascript
- pip
- imread
- pandas
- DFS
- SPL
- Today
- Total
목록Book/0006.딥러닝과 바둑 (3)
잠토의 잠망경
bookgithub github main source from dlgo.ttt.ttttypes import Point from dlgo.ttt.ttttypes import Player from dlgo.ttt.tttboard import GameState from dlgo.ttt.tttboard import Move from dlgo.minmax.minmax import MinMaxAgent from six.moves import input COL_NAMES = 'ABC' def print_board(board)->None: print(' A B C') for row in (1, 2, 3): pieces = [] for col in (1, 2, 3): piece = board..
1차 coding github from dlgo.goboard_slow import Board from dlgo.goboard_slow import GameState from dlgo.gotypes import Player from dlgo.agent import naive import time from dlgo.utils import print_board, print_move, clear_screen def main(): board_size = 9 game = GameState.new_game(board_size) # 9*9가 만들어진다. bots = { Player.black : naive.RandomBot(), Player.white : naive.RandomBot() } while not game..
gotypes.py github import enum #tag::color[] class Player(enum.Enum): black = 1 white = 2 @property def other(self): return Player.black if self == Player.white else Player.white #end::color[] #tag::points[] from collections import namedtuple class Point(namedtuple('Point', 'row col')): def neighbors(self): return[ Point(self.row-1, self.col), # A A Point(self.row+1, self.col), # ..