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
.PHONY: all clean | |
CXX := g++ | |
CXXFLAGS := \ | |
-std=c++17 \ | |
-Wall -Wextra \ | |
-Wconditionally-supported \ | |
-Wconversion \ | |
-Wduplicated-cond \ | |
-Wduplicated-branches \ |
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
--[[ | |
内藤九段将棋秘伝 (FC) 思考トレース for FCEUX | |
ログはサブディレクトリ trace/ 内に出力される(予め mkdir すること) | |
--]] | |
---------------------------------------------------------------------- | |
-- 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
--[[ | |
エジプト (FC) 問題データ抽出スクリプト for FCEUX | |
面セレの裏技(https://gamefaqs.gamespot.com/nes/570566-egypt/cheats)を | |
実行後、FREE PLAYのROOM選択画面から実行する。 | |
--]] | |
local function play(inp, n) | |
n = n or 1 | |
for i = 1, n do |
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
local cycle_start = nil | |
local cycle_end = nil | |
local function main() | |
memory.registerexec(0xB65B, function() | |
cycle_start = debugger.getcyclescount() | |
end) | |
memory.registerexec(0xB65E, function() | |
cycle_end = debugger.getcyclescount() | |
end) |
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
0 1548 | |
1 2788 | |
2 973 | |
3 974 | |
4 974 | |
5 974 | |
6 973 | |
7 974 | |
8 973 | |
9 973 |
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
--[[ | |
ドクターマリオ (FC) NMI戻りアドレス表示 (for FCEUX) | |
色すり替えが可能な場合、戻りアドレスが緑色で表示し、さらに該当マスを緑 | |
色で囲って表示する。 | |
※色すり替えが可能かどうかの判定は割とアバウトなので、できない場合もあ | |
りうる。厳密に知りたければ頑張ってアセンブリを読んでください>< | |
--]] |
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 -*- | |
"""bk2 -> fm2 変換 (ドクターマリオ (FC) 専用) | |
""" | |
import io | |
import re |
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
#n LOW MED HI | |
1 121 121 121 | |
2 211 211 211 | |
3 391 404 404 | |
4 764 764 777 | |
5 1484 1510 1536 | |
6 2950 2989 3028 | |
7 2950 2989 3028 | |
8 2950 2989 3028 | |
9 2950 2989 3028 |
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 -*- | |
from tabulate import tabulate | |
TABLE = ( | |
1, 2, 4, 8, 16, 32, 32, 32, 32, 32, | |
32, 10, 3, 0, 1, 2, 4, 0, 252, 248, |
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 -*- | |
"""ドクターマリオ (FC) ツモ&初期配置シミュレータ | |
使い方: | |
$ hand.py <level> <rand_idx> | |
level には 0..20 の値を指定します。 |