This file contains 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 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 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 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 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 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 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 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 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: | |
データの意味が完全にわかってない。扉でないところが扉になったりする。 | |
""" |
This file contains 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
# AD&D プールオブレイディアンス (FC) memory map | |
# ============================================= | |
# 特に断らない限りリトルエンディアン | |
$00- 雑用 | |
$13 U8 $2000 退避用 | |
$14 U8 $2001 退避用 |