This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# 単純パーセプトロン(Single Layer Perceptron) | |
# 入力ユニット数2(bias除く), 出力1 | |
# AND, OR, XOR でテスト | |
# AND, OR は正しく学習できるが、XOR は学習できないはず | |
# 勾配降下法により学習 | |
# 参考: http://hokuts.com/2015/11/25/ml2_perceptron/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# 多層パーセプトロン(Multi Layer Perceptron) | |
# 入力層、出力層に隠れ層を1つ追加(PRMLではこれを2層と呼ぶらしい) | |
# bias抜きで入力層ユニット数2, 隠れ層ユニット数2, 出力層ユニット数1 | |
# AND, OR, XOR でテスト | |
# 勾配降下法により学習 | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import gym | |
class Ram: | |
def __init__(self, state): | |
self.state = state | |
def read_u8(self, addr): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---------------------------------------------------------------------- | |
-- NES Vice - Project Doom (U) HUD script for FCEUX | |
-- | |
-- displays position, velocity, acceleration, and HPs. | |
---------------------------------------------------------------------- | |
---------------------------------------------------------------------- | |
-- util | |
---------------------------------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
"""NES Game Genie encoder/decoder. | |
Usage: | |
nesgenie enc <addr> <value> [cmp] | |
nesgenie dec <code> | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---------------------------------------------------------------------- | |
-- NES Star Soldier (J) hitbox display for FCEUX | |
---------------------------------------------------------------------- | |
---------------------------------------------------------------------- | |
-- util | |
---------------------------------------------------------------------- | |
local function array_append(ary, o) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---------------------------------------------------------------------- | |
-- NES Star Soldier (J) tile display for FCEUX | |
---------------------------------------------------------------------- | |
---------------------------------------------------------------------- | |
-- util | |
---------------------------------------------------------------------- | |
local function mem_read_u8(addr) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
"""AD&D プールオブレイディアンス (FC) 文字列デコーダ | |
""" | |
import argparse | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
"""AD&D プールオブレイディアンス (FC) マップデータ切り出し | |
iNESヘッダなしのROMファイルを食わせると全マップデータを出力する。 | |
""" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
"""AD&D プールオブレイディアンス (FC) マップデータ画像化 | |
マップデータ(0x400 Byte)から画像を生成する。 | |
TODO: | |
データの意味が完全にわかってない。扉でないところが扉になったりする。 | |
""" |