diff options
| author | 2026-04-17 00:46:27 +0200 | |
|---|---|---|
| committer | 2026-04-17 00:46:41 +0200 | |
| commit | 6a909ef9a4c60d5a2b54d12dcc53c7519960ae1f (patch) | |
| tree | 69ec52aca0feab88a5ce3e61e51b296eabb2ea41 | |
| parent | e6d532490dc06b17641499db6cefc620f7b0e868 (diff) | |
grandmaster: add chessboard inputs and preliminary internal artwork
| -rw-r--r-- | src/mame/fidelity/phantom.cpp | 8 | ||||
| -rw-r--r-- | src/mame/layout/grandmaster.lay | 522 | ||||
| -rw-r--r-- | src/mame/miltonbradley/grandmaster.cpp | 54 |
3 files changed, 562 insertions, 22 deletions
diff --git a/src/mame/fidelity/phantom.cpp b/src/mame/fidelity/phantom.cpp index 254b2cf6a8a..ec8b59d2531 100644 --- a/src/mame/fidelity/phantom.cpp +++ b/src/mame/fidelity/phantom.cpp @@ -12,12 +12,12 @@ it was rereleased in 1990 as the Mephisto Phantom. This is assumed to be identic At boot-up, the computer will do a self-test, the user can start playing after the motor has moved to the upper-right corner. The computer will continue positioning -pieces though, so it may be a bit distracting. Or, just hold INSERT (on PC) for a -while to speed up MAME before starting a new game. +pieces though, so it may be a bit distracting. Or, just fast forward MAME for a while +(hold INS key on Windows) before starting a new game. After the user captures a piece, select the captured piece from the MAME sensorboard -spawn block and place it anywhere on a free spot at the designated box at the -edge of the chessboard. +spawn block and place it anywhere on a free spot at the designated box at the edge +of the chessboard. Hardware notes: - PCB label: 510.1128A01 diff --git a/src/mame/layout/grandmaster.lay b/src/mame/layout/grandmaster.lay new file mode 100644 index 00000000000..883145a9039 --- /dev/null +++ b/src/mame/layout/grandmaster.lay @@ -0,0 +1,522 @@ +<?xml version="1.0"?> +<!-- +license:CC0-1.0 +authors:hap +--> +<mamelayout version="2"> + +<!-- define elements --> + + <element name="white"><rect><color red="0.81" green="0.8" blue="0.79" /></rect></element> + <element name="blackb"><rect><color red="0" green="0" blue="0" /></rect></element> + <element name="redb"><rect><color red="0.81" green="0.3" blue="0.29" /></rect></element> + <element name="blackbd"><disk><color red="0" green="0" blue="0" /></disk></element> + <element name="whited"><disk><color red="0.99" green="0.99" blue="0.99" /></disk></element> + + <element name="led" defstate="0"> + <disk state="1"><color red="1.0" green="0.1" blue="0.15" /></disk> + <disk state="0"><color red="0.15" green="0.015" blue="0.0225" /></disk> + </element> + <element name="ledr" defstate="0"> + <rect state="1"><color red="1.0" green="0.1" blue="0.15" /></rect> + <rect state="0"><color red="0.15" green="0.015" blue="0.0225" /></rect> + </element> + + <element name="hlr" defstate="0"> + <text string=" "> + <bounds x="0" y="0" width="8" height="6" /> + <color red="0.0" green="0.0" blue="0.0" /> + </text> + <disk state="1"> + <bounds x="0.5" y="0.5" width="7" height="5" /> + <color red="1.0" green="1.0" blue="1.0" /> + </disk> + </element> + + <element name="mpos" defstate="0"> + <rect> + <bounds x="0" y="0" width="4096" height="1" /> + <color alpha="0" /> + </rect> + <disk> + <bounds state="0" x="0" y="0" width="12.5" height="1" /> + <bounds state="3248" x="3248" y="0" width="12.5" height="1" /> + <color red="1.0" green="0.2" blue="0.8" /> + </disk> + </element> + + <element name="text_10"><text string="1"><color red="0.81" green="0.8" blue="0.79" /></text></element> + <element name="text_20"><text string="2"><color red="0.41" green="0.4" blue="0.39" /></text></element> + <element name="text_30"><text string="3"><color red="0.81" green="0.8" blue="0.79" /></text></element> + <element name="text_40"><text string="4"><color red="0.41" green="0.4" blue="0.39" /></text></element> + <element name="text_50"><text string="5"><color red="0.81" green="0.8" blue="0.79" /></text></element> + <element name="text_60"><text string="6"><color red="0.41" green="0.4" blue="0.39" /></text></element> + <element name="text_70"><text string="7"><color red="0.81" green="0.8" blue="0.79" /></text></element> + <element name="text_80"><text string="8"><color red="0.41" green="0.4" blue="0.39" /></text></element> + + <element name="text_11"><text string="1" align="2"><color red="0.41" green="0.4" blue="0.39" /></text></element> + <element name="text_21"><text string="2" align="2"><color red="0.81" green="0.8" blue="0.79" /></text></element> + <element name="text_31"><text string="3" align="2"><color red="0.41" green="0.4" blue="0.39" /></text></element> + <element name="text_41"><text string="4" align="2"><color red="0.81" green="0.8" blue="0.79" /></text></element> + <element name="text_51"><text string="5" align="2"><color red="0.41" green="0.4" blue="0.39" /></text></element> + <element name="text_61"><text string="6" align="2"><color red="0.81" green="0.8" blue="0.79" /></text></element> + <element name="text_71"><text string="7" align="2"><color red="0.41" green="0.4" blue="0.39" /></text></element> + <element name="text_81"><text string="8" align="2"><color red="0.81" green="0.8" blue="0.79" /></text></element> + + <element name="text_a0"><text string="a"><color red="0.41" green="0.4" blue="0.39" /></text></element> + <element name="text_b0"><text string="b"><color red="0.81" green="0.8" blue="0.79" /></text></element> + <element name="text_c0"><text string="c"><color red="0.41" green="0.4" blue="0.39" /></text></element> + <element name="text_d0"><text string="d"><color red="0.81" green="0.8" blue="0.79" /></text></element> + <element name="text_e0"><text string="e"><color red="0.41" green="0.4" blue="0.39" /></text></element> + <element name="text_f0"><text string="f"><color red="0.81" green="0.8" blue="0.79" /></text></element> + <element name="text_g0"><text string="g"><color red="0.41" green="0.4" blue="0.39" /></text></element> + <element name="text_h0"><text string="h"><color red="0.81" green="0.8" blue="0.79" /></text></element> + + <element name="text_a1"><text string="a"><color red="0.81" green="0.8" blue="0.79" /></text></element> + <element name="text_b1"><text string="b"><color red="0.41" green="0.4" blue="0.39" /></text></element> + <element name="text_c1"><text string="c"><color red="0.81" green="0.8" blue="0.79" /></text></element> + <element name="text_d1"><text string="d"><color red="0.41" green="0.4" blue="0.39" /></text></element> + <element name="text_e1"><text string="e"><color red="0.81" green="0.8" blue="0.79" /></text></element> + <element name="text_f1"><text string="f"><color red="0.41" green="0.4" blue="0.39" /></text></element> + <element name="text_g1"><text string="g"><color red="0.81" green="0.8" blue="0.79" /></text></element> + <element name="text_h1"><text string="h"><color red="0.41" green="0.4" blue="0.39" /></text></element> + + <element name="text_p1"><image file="chess/wk.svg"/></element> + <element name="text_p2"><image file="chess/wq.svg"/></element> + <element name="text_p3"><image file="chess/wr.svg"/></element> + <element name="text_p4"><image file="chess/wb.svg"/></element> + <element name="text_p5"><image file="chess/wn.svg"/></element> + <element name="text_p6"><image file="chess/wp.svg"/></element> + + +<!-- sb board --> + + <element name="cblack"><rect><color red="0.41" green="0.4" blue="0.39" /></rect></element> + <element name="cwhite"><rect><color red="0.85" green="0.73" blue="0.55" /></rect></element> + <element name="dbrown"><rect><color red="0.28" green="0.24" blue="0.2" /></rect></element> + <element name="whitem"><rect><color red="0.53" green="0.56" blue="0.59" /></rect></element> + + <element name="text_white"><text string="WHITE"><color red="0.81" green="0.8" blue="0.79" /></text></element> + <element name="text_black"><text string="BLACK"><color red="0.81" green="0.8" blue="0.79" /></text></element> + + <element name="hlbb" defstate="0"> + <text string=" "><bounds x="0" y="0" width="1" height="1" /></text> + <disk state="1"> + <bounds x="0.12" y="0.12" width="0.76" height="0.76" /> + <color red="0" green="0" blue="0" /> + </disk> + </element> + + <element name="piece" defstate="0"> + <image file="chess/wp.svg" state="1"/> + <image file="chess/wn.svg" state="2"/> + <image file="chess/wb.svg" state="3"/> + <image file="chess/wr.svg" state="4"/> + <image file="chess/wq.svg" state="5"/> + <image file="chess/wk.svg" state="6"/> + + <image file="chess/bp.svg" state="7"/> + <image file="chess/bn.svg" state="8"/> + <image file="chess/bb.svg" state="9"/> + <image file="chess/br.svg" state="10"/> + <image file="chess/bq.svg" state="11"/> + <image file="chess/bk.svg" state="12"/> + + <!-- selected pieces --> + <image file="chess/wp.svg" state="13"><color alpha="0.5" /></image> + <image file="chess/wn.svg" state="14"><color alpha="0.5" /></image> + <image file="chess/wb.svg" state="15"><color alpha="0.5" /></image> + <image file="chess/wr.svg" state="16"><color alpha="0.5" /></image> + <image file="chess/wq.svg" state="17"><color alpha="0.5" /></image> + <image file="chess/wk.svg" state="18"><color alpha="0.5" /></image> + + <image file="chess/bp.svg" state="19"><color alpha="0.5" /></image> + <image file="chess/bn.svg" state="20"><color alpha="0.5" /></image> + <image file="chess/bb.svg" state="21"><color alpha="0.5" /></image> + <image file="chess/br.svg" state="22"><color alpha="0.5" /></image> + <image file="chess/bq.svg" state="23"><color alpha="0.5" /></image> + <image file="chess/bk.svg" state="24"><color alpha="0.5" /></image> + </element> + + <group name="sb_board"> + <bounds x="-20" y="-2.5" width="120" height="85.0" /> + <element ref="blackb"><bounds x="-20" y="-2.5" width="120" height="85.0" /></element> + <element ref="white"><bounds x="-19.7" y="-2.5" width="119.4" height="85.0" /></element> + <element ref="dbrown"><bounds x="-19.4" y="-2.2" width="118.8" height="84.4" /></element> + <element ref="cwhite"><bounds x="-0.6" y="-0.6" width="81.2" height="81.2" /></element> + <element ref="dbrown"><bounds x="-0.3" y="-0.3" width="80.6" height="80.6" /></element> + + <!-- squares (avoid seams) --> + <element ref="cwhite"><bounds x="0" y="0" width="11" height="11" /></element> + <element ref="cblack"><bounds x="10" y="0" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="20" y="0" width="11" height="11" /></element> + <element ref="cblack"><bounds x="30" y="0" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="40" y="0" width="11" height="11" /></element> + <element ref="cblack"><bounds x="50" y="0" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="60" y="0" width="11" height="11" /></element> + <element ref="cblack"><bounds x="70" y="0" width="10" height="11" /></element> + + <element ref="cblack"><bounds x="0" y="10" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="10" y="10" width="11" height="11" /></element> + <element ref="cblack"><bounds x="20" y="10" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="30" y="10" width="11" height="11" /></element> + <element ref="cblack"><bounds x="40" y="10" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="50" y="10" width="11" height="11" /></element> + <element ref="cblack"><bounds x="60" y="10" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="70" y="10" width="10" height="11" /></element> + + <element ref="cwhite"><bounds x="0" y="20" width="11" height="11" /></element> + <element ref="cblack"><bounds x="10" y="20" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="20" y="20" width="11" height="11" /></element> + <element ref="cblack"><bounds x="30" y="20" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="40" y="20" width="11" height="11" /></element> + <element ref="cblack"><bounds x="50" y="20" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="60" y="20" width="11" height="11" /></element> + <element ref="cblack"><bounds x="70" y="20" width="10" height="11" /></element> + + <element ref="cblack"><bounds x="0" y="30" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="10" y="30" width="11" height="11" /></element> + <element ref="cblack"><bounds x="20" y="30" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="30" y="30" width="11" height="11" /></element> + <element ref="cblack"><bounds x="40" y="30" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="50" y="30" width="11" height="11" /></element> + <element ref="cblack"><bounds x="60" y="30" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="70" y="30" width="10" height="11" /></element> + + <element ref="cwhite"><bounds x="0" y="40" width="11" height="11" /></element> + <element ref="cblack"><bounds x="10" y="40" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="20" y="40" width="11" height="11" /></element> + <element ref="cblack"><bounds x="30" y="40" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="40" y="40" width="11" height="11" /></element> + <element ref="cblack"><bounds x="50" y="40" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="60" y="40" width="11" height="11" /></element> + <element ref="cblack"><bounds x="70" y="40" width="10" height="11" /></element> + + <element ref="cblack"><bounds x="0" y="50" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="10" y="50" width="11" height="11" /></element> + <element ref="cblack"><bounds x="20" y="50" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="30" y="50" width="11" height="11" /></element> + <element ref="cblack"><bounds x="40" y="50" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="50" y="50" width="11" height="11" /></element> + <element ref="cblack"><bounds x="60" y="50" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="70" y="50" width="10" height="11" /></element> + + <element ref="cwhite"><bounds x="0" y="60" width="11" height="11" /></element> + <element ref="cblack"><bounds x="10" y="60" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="20" y="60" width="11" height="11" /></element> + <element ref="cblack"><bounds x="30" y="60" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="40" y="60" width="11" height="11" /></element> + <element ref="cblack"><bounds x="50" y="60" width="11" height="11" /></element> + <element ref="cwhite"><bounds x="60" y="60" width="11" height="11" /></element> + <element ref="cblack"><bounds x="70" y="60" width="10" height="11" /></element> + + <element ref="cblack"><bounds x="0" y="70" width="11" height="10" /></element> + <element ref="cwhite"><bounds x="10" y="70" width="11" height="10" /></element> + <element ref="cblack"><bounds x="20" y="70" width="11" height="10" /></element> + <element ref="cwhite"><bounds x="30" y="70" width="11" height="10" /></element> + <element ref="cblack"><bounds x="40" y="70" width="11" height="10" /></element> + <element ref="cwhite"><bounds x="50" y="70" width="11" height="10" /></element> + <element ref="cblack"><bounds x="60" y="70" width="11" height="10" /></element> + <element ref="cwhite"><bounds x="70" y="70" width="10" height="10" /></element> + + <!-- chessboard coords --> + <element ref="text_80"><bounds x="0" yc="5" width="1.8" height="1.8" /></element> + <element ref="text_70"><bounds x="0" yc="15" width="1.8" height="1.8" /></element> + <element ref="text_60"><bounds x="0" yc="25" width="1.8" height="1.8" /></element> + <element ref="text_50"><bounds x="0" yc="35" width="1.8" height="1.8" /></element> + <element ref="text_40"><bounds x="0" yc="45" width="1.8" height="1.8" /></element> + <element ref="text_30"><bounds x="0" yc="55" width="1.8" height="1.8" /></element> + <element ref="text_20"><bounds x="0" yc="65" width="1.8" height="1.8" /></element> + <element ref="text_10"><bounds x="0" yc="75" width="1.8" height="1.8" /></element> + + <element ref="text_81"><bounds x="77.9" yc="5" width="1.8" height="1.8" /></element> + <element ref="text_71"><bounds x="77.9" yc="15" width="1.8" height="1.8" /></element> + <element ref="text_61"><bounds x="77.9" yc="25" width="1.8" height="1.8" /></element> + <element ref="text_51"><bounds x="77.9" yc="35" width="1.8" height="1.8" /></element> + <element ref="text_41"><bounds x="77.9" yc="45" width="1.8" height="1.8" /></element> + <element ref="text_31"><bounds x="77.9" yc="55" width="1.8" height="1.8" /></element> + <element ref="text_21"><bounds x="77.9" yc="65" width="1.8" height="1.8" /></element> + <element ref="text_11"><bounds x="77.9" yc="75" width="1.8" height="1.8" /></element> + + <element ref="text_a0"><bounds xc="5" y="0" width="1.8" height="1.8" /></element> + <element ref="text_b0"><bounds xc="15" y="0" width="1.8" height="1.8" /></element> + <element ref="text_c0"><bounds xc="25" y="0" width="1.8" height="1.8" /></element> + <element ref="text_d0"><bounds xc="35" y="0" width="1.8" height="1.8" /></element> + <element ref="text_e0"><bounds xc="45" y="0" width="1.8" height="1.8" /></element> + <element ref="text_f0"><bounds xc="55" y="0" width="1.8" height="1.8" /></element> + <element ref="text_g0"><bounds xc="65" y="0" width="1.8" height="1.8" /></element> + <element ref="text_h0"><bounds xc="75" y="0" width="1.8" height="1.8" /></element> + + <element ref="text_a1"><bounds xc="5" y="78" width="1.8" height="1.8" /></element> + <element ref="text_b1"><bounds xc="15" y="78" width="1.8" height="1.8" /></element> + <element ref="text_c1"><bounds xc="25" y="78" width="1.8" height="1.8" /></element> + <element ref="text_d1"><bounds xc="35" y="78" width="1.8" height="1.8" /></element> + <element ref="text_e1"><bounds xc="45" y="78" width="1.8" height="1.8" /></element> + <element ref="text_f1"><bounds xc="55" y="78" width="1.8" height="1.8" /></element> + <element ref="text_g1"><bounds xc="65" y="78" width="1.8" height="1.8" /></element> + <element ref="text_h1"><bounds xc="75" y="78" width="1.8" height="1.8" /></element> + + <!-- side piece labels --> + <element ref="blackb"><bounds xc="-10" yc="40" width="17" height="80" /></element> + <element ref="blackb"><bounds xc="90" yc="40" width="17" height="80" /></element> + + <repeat count="4"> + <param name="y" start="75" increment="-10" /> + + <element ref="text_p6"><bounds xc="-15" yc="~y~" width="3.5" height="3.5" /></element> + <element ref="text_p6"><bounds xc="-5" yc="~y~" width="3.5" height="3.5" /></element> + <element ref="text_p6"><bounds xc="85" yc="~y~" width="3.5" height="3.5" /></element> + <element ref="text_p6"><bounds xc="95" yc="~y~" width="3.5" height="3.5" /></element> + </repeat> + + <repeat count="3"> + <param name="y" start="35" increment="-10" /> + <param name="i" start="5" increment="-1" /> + + <element ref="text_p~i~"><bounds xc="-15" yc="~y~" width="3.5" height="3.5" /></element> + <element ref="text_p~i~"><bounds xc="-5" yc="~y~" width="3.5" height="3.5" /></element> + <element ref="text_p~i~"><bounds xc="85" yc="~y~" width="3.5" height="3.5" /></element> + <element ref="text_p~i~"><bounds xc="95" yc="~y~" width="3.5" height="3.5" /></element> + </repeat> + + <element ref="text_p2"><bounds xc="-15" yc="5" width="3.5" height="3.5" /></element> + <element ref="text_p1"><bounds xc="-5" yc="5" width="3.5" height="3.5" /></element> + <element ref="text_p1"><bounds xc="85" yc="5" width="3.5" height="3.5" /></element> + <element ref="text_p2"><bounds xc="95" yc="5" width="3.5" height="3.5" /></element> + + <element ref="whitem" blend="multiply"><bounds xc="-10" yc="40" width="17" height="80" /></element> + <element ref="whitem" blend="multiply"><bounds xc="90" yc="40" width="17" height="80" /></element> + <element ref="dbrown" blend="add"><bounds xc="-10" yc="40" width="17" height="80" /></element> + <element ref="dbrown" blend="add"><bounds xc="90" yc="40" width="17" height="80" /></element> + + <element ref="text_white"><bounds xc="-10" y="78.2" width="10" height="1.8" /></element> + <element ref="text_black"><bounds xc="90" y="78.2" width="10" height="1.8" /></element> + + <!-- sensors, pieces --> + <repeat count="8"> + <param name="y" start="0" increment="10" /> + <param name="i" start="8" increment="-1" /> + + <element ref="hlbb" inputtag="board:board:RANK.~i~" inputmask="0x01"><bounds x="0" y="~y~" width="10" height="10" /><color alpha="0.04" /></element> + <element ref="hlbb" inputtag="board:board:RANK.~i~" inputmask="0x02"><bounds x="10" y="~y~" width="10" height="10" /><color alpha="0.04" /></element> + <element ref="hlbb" inputtag="board:board:RANK.~i~" inputmask="0x04"><bounds x="20" y="~y~" width="10" height="10" /><color alpha="0.04" /></element> + <element ref="hlbb" inputtag="board:board:RANK.~i~" inputmask="0x08"><bounds x="30" y="~y~" width="10" height="10" /><color alpha="0.04" /></element> + <element ref="hlbb" inputtag="board:board:RANK.~i~" inputmask="0x10"><bounds x="40" y="~y~" width="10" height="10" /><color alpha="0.04" /></element> + <element ref="hlbb" inputtag="board:board:RANK.~i~" inputmask="0x20"><bounds x="50" y="~y~" width="10" height="10" /><color alpha="0.04" /></element> + <element ref="hlbb" inputtag="board:board:RANK.~i~" inputmask="0x40"><bounds x="60" y="~y~" width="10" height="10" /><color alpha="0.04" /></element> + <element ref="hlbb" inputtag="board:board:RANK.~i~" inputmask="0x80"><bounds x="70" y="~y~" width="10" height="10" /><color alpha="0.04" /></element> + + <element ref="hlbb" inputtag="board:board:RANK.~i~" inputmask="0x400"><bounds x="-20" y="~y~" width="10" height="10" /><color alpha="0.04" /></element> + <element ref="hlbb" inputtag="board:board:RANK.~i~" inputmask="0x800"><bounds x="-10" y="~y~" width="10" height="10" /><color alpha="0.04" /></element> + <element ref="hlbb" inputtag="board:board:RANK.~i~" inputmask="0x100"><bounds x="80" y="~y~" width="10" height="10" /><color alpha="0.04" /></element> + <element ref="hlbb" inputtag="board:board:RANK.~i~" inputmask="0x200"><bounds x="90" y="~y~" width="10" height="10" /><color alpha="0.04" /></element> + + <element name="piece_a~i~" ref="piece"><bounds x="0" y="~y~" width="10" height="10" /></element> + <element name="piece_b~i~" ref="piece"><bounds x="10" y="~y~" width="10" height="10" /></element> + <element name="piece_c~i~" ref="piece"><bounds x="20" y="~y~" width="10" height="10" /></element> + <element name="piece_d~i~" ref="piece"><bounds x="30" y="~y~" width="10" height="10" /></element> + <element name="piece_e~i~" ref="piece"><bounds x="40" y="~y~" width="10" height="10" /></element> + <element name="piece_f~i~" ref="piece"><bounds x="50" y="~y~" width="10" height="10" /></element> + <element name="piece_g~i~" ref="piece"><bounds x="60" y="~y~" width="10" height="10" /></element> + <element name="piece_h~i~" ref="piece"><bounds x="70" y="~y~" width="10" height="10" /></element> + + <element name="piece_k~i~" ref="piece"><bounds x="-20" y="~y~" width="10" height="10" /></element> + <element name="piece_l~i~" ref="piece"><bounds x="-10" y="~y~" width="10" height="10" /></element> + <element name="piece_i~i~" ref="piece"><bounds x="80" y="~y~" width="10" height="10" /></element> + <element name="piece_j~i~" ref="piece"><bounds x="90" y="~y~" width="10" height="10" /></element> + </repeat> + </group> + + +<!-- sb ui --> + + <element name="hlub" defstate="0"> + <rect state="1"><color red="0" green="0" blue="0" /></rect> + </element> + + <element name="text_uit1"><text string="S.BOARD"><color red="0.81" green="0.8" blue="0.79" /></text></element> + <element name="text_uit2"><text string="INTERFACE"><color red="0.81" green="0.8" blue="0.79" /></text></element> + <element name="text_uib1"><text string="BOARD:"><color red="0.81" green="0.8" blue="0.79" /></text></element> + <element name="text_uib2"><text string="RESET"><color red="0.01" green="0.01" blue="0.01" /></text></element> + <element name="text_uib3"><text string="CLEAR"><color red="0.01" green="0.01" blue="0.01" /></text></element> + <element name="text_uis1"><text string="SPAWN:"><color red="0.81" green="0.8" blue="0.79" /></text></element> + <element name="text_uih1"><text string="HAND:"><color red="0.81" green="0.8" blue="0.79" /></text></element> + <element name="text_uih2"><text string="REMOVE"><color red="0.01" green="0.01" blue="0.01" /></text></element> + <element name="text_uiu1"><text string="UNDO:"><color red="0.81" green="0.8" blue="0.79" /></text></element> + <element name="text_uiu2a"><text string=" <<"><color red="0.01" green="0.01" blue="0.01" /></text></element> + <element name="text_uiu2b"><text string=" < "><color red="0.01" green="0.01" blue="0.01" /></text></element> + <element name="text_uiu2c"><text string=" >"><color red="0.01" green="0.01" blue="0.01" /></text></element> + <element name="text_uiu2d"><text string=" >>"><color red="0.01" green="0.01" blue="0.01" /></text></element> + <element name="text_uiu3b"><text string="/"><color red="0.81" green="0.8" blue="0.79" /></text></element> + + <element name="text_uiu3a" defstate="0"> + <simplecounter maxstate="999" digits="1" align="2"> + <color red="0.81" green="0.8" blue="0.79" /> + </simplecounter> + </element> + <element name="text_uiu3c" defstate="0"> + <simplecounter maxstate="999" digits="1" align="1"> + <color red="0.81" green="0.8" blue="0.79" /> + </simplecounter> + </element> + + <group name="sb_ui"> + <bounds x="0" y="0" width="10" height="80" /> + <element ref="cblack"><bounds x="0" y="0" width="10" height="1" /></element> + <element ref="cblack"><bounds x="0" y="7" width="10" height="1" /></element> + <element ref="cblack"><bounds x="0" y="79" width="10" height="1" /></element> + <element ref="text_uit1"><bounds x="0" y="2" width="10" height="2" /></element> + <element ref="text_uit2"><bounds x="0" y="4" width="10" height="2" /></element> + + <!-- board --> + <element ref="text_uib1"><bounds x="0" y="9" width="10" height="2" /></element> + <element ref="cwhite"><bounds x="1" y="11.5" width="8" height="2.5" /></element> + <element ref="cwhite"><bounds x="1" y="15" width="8" height="2.5" /></element> + + <element ref="text_uib2"><bounds x="1.5" y="11.75" width="7" height="2" /></element> + <element ref="text_uib3"><bounds x="1.5" y="15.25" width="7" height="2" /></element> + + <element ref="hlub" inputtag="board:board:UI" inputmask="0x200"><bounds x="1" y="11.5" width="8" height="2.5" /><color alpha="0.25" /></element> + <element ref="hlub" inputtag="board:board:UI" inputmask="0x100"><bounds x="1" y="15" width="8" height="2.5" /><color alpha="0.25" /></element> + + <!-- spawn --> + <element ref="text_uis1"><bounds x="0" y="20.5" width="10" height="2" /></element> + <element ref="cwhite"><bounds x="1" y="23" width="8" height="12" /></element> + <element ref="cwhite"><bounds x="1" y="36" width="8" height="12" /></element> + + <element name="piece_ui1" ref="piece"><bounds x="1" y="23" width="4" height="4" /></element> + <element name="piece_ui2" ref="piece"><bounds x="1" y="27" width="4" height="4" /></element> + <element name="piece_ui3" ref="piece"><bounds x="1" y="31" width="4" height="4" /></element> + <element name="piece_ui4" ref="piece"><bounds x="5" y="23" width="4" height="4" /></element> + <element name="piece_ui5" ref="piece"><bounds x="5" y="27" width="4" height="4" /></element> + <element name="piece_ui6" ref="piece"><bounds x="5" y="31" width="4" height="4" /></element> + <element name="piece_ui7" ref="piece"><bounds x="1" y="36" width="4" height="4" /></element> + <element name="piece_ui8" ref="piece"><bounds x="1" y="40" width="4" height="4" /></element> + <element name="piece_ui9" ref="piece"><bounds x="1" y="44" width="4" height="4" /></element> + <element name="piece_ui10" ref="piece"><bounds x="5" y="36" width="4" height="4" /></element> + <element name="piece_ui11" ref="piece"><bounds x="5" y="40" width="4" height="4" /></element> + <element name="piece_ui12" ref="piece"><bounds x="5" y="44" width="4" height="4" /></element> + + <element ref="hlub" inputtag="board:board:SPAWN" inputmask="0x0001"><bounds x="1" y="23" width="4" height="4" /><color alpha="0.25" /></element> + <element ref="hlub" inputtag="board:board:SPAWN" inputmask="0x0002"><bounds x="1" y="27" width="4" height="4" /><color alpha="0.25" /></element> + <element ref="hlub" inputtag="board:board:SPAWN" inputmask="0x0004"><bounds x="1" y="31" width="4" height="4" /><color alpha="0.25" /></element> + <element ref="hlub" inputtag="board:board:SPAWN" inputmask="0x0008"><bounds x="5" y="23" width="4" height="4" /><color alpha="0.25" /></element> + <element ref="hlub" inputtag="board:board:SPAWN" inputmask="0x0010"><bounds x="5" y="27" width="4" height="4" /><color alpha="0.25" /></element> + <element ref="hlub" inputtag="board:board:SPAWN" inputmask="0x0020"><bounds x="5" y="31" width="4" height="4" /><color alpha="0.25" /></element> + <element ref="hlub" inputtag="board:board:SPAWN" inputmask="0x0040"><bounds x="1" y="36" width="4" height="4" /><color alpha="0.25" /></element> + <element ref="hlub" inputtag="board:board:SPAWN" inputmask="0x0080"><bounds x="1" y="40" width="4" height="4" /><color alpha="0.25" /></element> + <element ref="hlub" inputtag="board:board:SPAWN" inputmask="0x0100"><bounds x="1" y="44" width="4" height="4" /><color alpha="0.25" /></element> + <element ref="hlub" inputtag="board:board:SPAWN" inputmask="0x0200"><bounds x="5" y="36" width="4" height="4" /><color alpha="0.25" /></element> + <element ref="hlub" inputtag="board:board:SPAWN" inputmask="0x0400"><bounds x="5" y="40" width="4" height="4" /><color alpha="0.25" /></element> + <element ref="hlub" inputtag="board:board:SPAWN" inputmask="0x0800"><bounds x="5" y="44" width="4" height="4" /><color alpha="0.25" /></element> + + <!-- hand --> + <element ref="text_uih1"><bounds x="0" y="51" width="10" height="2" /></element> + <element ref="cblack"><bounds x="1" y="53.5" width="8" height="6" /></element> + <element name="piece_ui0" ref="piece"><bounds x="2" y="53.5" width="6" height="6" /></element> + <element name="cpu_hand" ref="piece"><bounds x="2" y="53.5" width="6" height="6" /><color alpha="0.5" /></element> + + <element ref="cwhite"><bounds x="1" y="60.5" width="8" height="2.5" /></element> + <element ref="text_uih2"><bounds x="1.5" y="60.75" width="7" height="2" /></element> + <element ref="hlub" inputtag="board:board:UI" inputmask="0x08"><bounds x="1" y="60.5" width="8" height="2.5" /><color alpha="0.25" /></element> + + <!-- undo --> + <element ref="text_uiu1"><bounds x="0" y="66" width="10" height="2" /></element> + <element ref="cwhite"><bounds x="1" y="68.5" width="1.7" height="6" /></element> + <element ref="cwhite"><bounds x="3.1" y="68.5" width="1.7" height="6" /></element> + <element ref="cwhite"><bounds x="5.2" y="68.5" width="1.7" height="6" /></element> + <element ref="cwhite"><bounds x="7.3" y="68.5" width="1.7" height="6" /></element> + <element ref="text_uiu2a"><bounds x="1" y="69.5" width="1.7" height="4" /></element> + <element ref="text_uiu2b"><bounds x="3.1" y="69.5" width="1.7" height="4" /></element> + <element ref="text_uiu2c"><bounds x="5.2" y="69.5" width="1.7" height="4" /></element> + <element ref="text_uiu2d"><bounds x="7.3" y="69.5" width="1.7" height="4" /></element> + + <element ref="hlub" inputtag="board:board:UI" inputmask="0x10"><bounds x="1" y="68.5" width="1.7" height="6" /><color alpha="0.25" /></element> + <element ref="hlub" inputtag="board:board:UI" inputmask="0x20"><bounds x="3.1" y="68.5" width="1.7" height="6" /><color alpha="0.25" /></element> + <element ref="hlub" inputtag="board:board:UI" inputmask="0x40"><bounds x="5.2" y="68.5" width="1.7" height="6" /><color alpha="0.25" /></element> + <element ref="hlub" inputtag="board:board:UI" inputmask="0x80"><bounds x="7.3" y="68.5" width="1.7" height="6" /><color alpha="0.25" /></element> + + <element name="count_ui0" ref="text_uiu3a"><bounds x="0" y="75" width="4" height="2" /></element> + <element name="count_ui1" ref="text_uiu3c"><bounds x="6" y="75" width="4" height="2" /></element> + <element ref="text_uiu3b"><bounds x="4" y="75" width="2" height="2" /></element> + </group> + + +<!-- bottom panel --> + + <element name="text_u1"><text string="LEVEL"><color red="0.01" green="0.01" blue="0.01" /></text></element> + <element name="text_u2"><text string="HINT"><color red="0.01" green="0.01" blue="0.01" /></text></element> + <element name="text_u3"><text string="CHANGE"><color red="0.01" green="0.01" blue="0.01" /></text></element> + <element name="text_u4"><text string=" FORWARD "><color red="0.01" green="0.01" blue="0.01" /></text></element> + <element name="text_u5"><text string="VERIFY"><color red="0.01" green="0.01" blue="0.01" /></text></element> + <element name="text_u6"><text string="GAME"><color red="0.01" green="0.01" blue="0.01" /></text></element> + <element name="text_u7"><text string="AUTO"><color red="0.01" green="0.01" blue="0.01" /></text></element> + <element name="text_u8"><text string="SOUND"><color red="0.01" green="0.01" blue="0.01" /></text></element> + + <element name="text_shift"><text string="SHIFT"><color red="0.7" green="0.2" blue="0.2" /></text></element> + <element name="text_s1"><text string="STOP"><color red="0.7" green="0.2" blue="0.2" /></text></element> + <element name="text_s2"><text string="NEW"><color red="0.7" green="0.2" blue="0.2" /></text></element> + <element name="text_s3"><text string="REPLAY"><color red="0.7" green="0.2" blue="0.2" /></text></element> + <element name="text_s4"><text string="BACK"><color red="0.7" green="0.2" blue="0.2" /></text></element> + <element name="text_s5"><text string="SETUP"><color red="0.7" green="0.2" blue="0.2" /></text></element> + <element name="text_s6"><text string="MANUAL"><color red="0.7" green="0.2" blue="0.2" /></text></element> + <element name="text_s7"><text string="PROBLEM"><color red="0.7" green="0.2" blue="0.2" /></text></element> + <element name="text_s8"><text string="LEGAL"><color red="0.7" green="0.2" blue="0.2" /></text></element> + + <group name="panel2"> + <bounds x="-3" y="0" width="125" height="17" /> + + <element ref="redb"><bounds x="51" y="4" width="6" height="4.5" /></element> + <element ref="blackb"><bounds x="51.5" y="4.5" width="5" height="3.5" /></element> + <element name="1.5" ref="led"><bounds x="53.2" y="5.5" width="1.5" height="1.5" /></element> + <element ref="white"><bounds x="51" y="9.5" width="6" height="4.5" /></element> + <element ref="text_shift"><bounds x="51" y="10.9" width="6" height="1.5" /></element> + <element ref="hlr" inputtag="IN.0" inputmask="0x800"><bounds x="51" y="9.5" width="6" height="4.5" /><color alpha="0.3" /></element> + + <repeat count="8"> + <param name="x" start="61" increment="7" /> + <param name="i" start="1" increment="1" /> + <param name="mask" start="0x01" lshift="1" /> + + <element ref="white"><bounds xc="~x~" y="4" width="6" height="4.5" /></element> + <element ref="white"><bounds xc="~x~" y="9.5" width="6" height="4.5" /></element> + <element ref="text_s~i~"><bounds xc="~x~" y="5.0" width="6" height="1.5" /></element> + <element ref="text_u~i~"><bounds xc="~x~" y="11.5" width="6" height="1.5" /></element> + <element ref="blackbd"><bounds xc="~x~" y="7.5" width="3" height="3" /></element> + <element ref="whited"><bounds xc="~x~" y="8" width="2" height="2" /></element> + <element ref="hlr" inputtag="IN.0" inputmask="~mask~"><bounds xc="~x~" y="5" width="5" height="8" /><color alpha="0.3" /></element> + </repeat> + </group> + + +<!-- build screen --> + + <view name="Internal Layout"> + <bounds left="-12.7" right="119.7" top="0" bottom="102" /> + + <group ref="sb_board"><bounds x="0" y="0" width="120" height="85" /></group> + <group ref="sb_ui"><bounds x="-11.2" y="2.5" width="10" height="80" /></group> + + <group ref="panel2"><bounds x="1" y="84.5" width="125" height="17" /></group> + + <!-- optional magnet position overlay --> + <collection name="Magnet Position"> + <element name="pos_x" ref="mpos"> + <animate name="pos_y" /> + <bounds state="0" x="-0.625" y="1.875" width="409.6" height="1.25" /> + <bounds state="800" x="-0.625" y="81.875" width="409.6" height="1.25" /> + <color alpha="0.4" /> + </element> + <element name="pos_x" ref="mpos"> + <animate name="pos_y" /> + <bounds state="0" x="-205.425" y="1.875" width="409.6" height="1.25" /> + <bounds state="800" x="-205.425" y="81.875" width="409.6" height="1.25" /> + <color alpha="0.9" /> + </element> + + <element ref="blackb"><bounds x="-210" y="0" width="150" height="85" /></element> + <element ref="blackb"><bounds x="200" y="0" width="150" height="85" /></element> + </collection> + </view> + +</mamelayout> diff --git a/src/mame/miltonbradley/grandmaster.cpp b/src/mame/miltonbradley/grandmaster.cpp index f120532ddf0..d8c1b20dec4 100644 --- a/src/mame/miltonbradley/grandmaster.cpp +++ b/src/mame/miltonbradley/grandmaster.cpp @@ -6,6 +6,18 @@ Milton Bradley (Electronic) Grand Master (stylized as Grand·Master) (model 4243) aka Phantom Chess Computer in the UK, and Milton in the rest of Europe +Chess computer with plotter style motor + magnet hidden underneath it. When it's +the computer's turn, it will automatically do the move. Programmed by Intelligent +Software, still some time before Richard Lang joined the company. + +At boot-up, the computer will do a self-test. Although the user can start playing +immediately, it may be a big distracting. So, just fast forward MAME for a while +(hold INS key on Windows) before starting a new game. + +After the user captures a piece, select the captured piece from the MAME sensorboard +spawn block and place it anywhere on a free spot at the designated box at the edge +of the chessboard. + Hardware notes: - PCB label: ASSY 1274243001 PN 7924243001 - SY6502A @ 1.79MHz (3.58MHz resonator) @@ -17,7 +29,7 @@ There's also a newer revision with mask ROM labels C19679 7830043002 and C19680 7830043001, ROM contents is confirmed to be the same. TODO: -- WIP +- finish internal artwork *******************************************************************************/ @@ -34,7 +46,7 @@ TODO: #include "speaker.h" // internal artwork -//#include "grandmaster.lh" +#include "grandmaster.lh" namespace { @@ -160,10 +172,16 @@ u8 grandmas_state::input_r(offs_t offset) { u16 data = 0; - if (m_inp_mux == 8) + // read chessboard + if (m_inp_mux < 8) + data = m_board->read_rank(m_inp_mux); + + // read buttons + else if (m_inp_mux == 8) data = m_inputs->read(); - return ~data >> (offset * 6) | 0xc0; + data = bitswap<4>(data,10,11,8,9) << 8 | (data & 0xff); + return ~data >> ((offset ^ 1) * 6) | 0xc0; } @@ -196,18 +214,18 @@ void grandmas_state::main_map(address_map &map) static INPUT_PORTS_START( grandmas ) PORT_START("IN.0") - PORT_BIT(0x001, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_1) // auto/problem - PORT_BIT(0x002, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_2) - PORT_BIT(0x004, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_3) - PORT_BIT(0x008, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_4) - PORT_BIT(0x010, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_5) - PORT_BIT(0x020, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_6) - PORT_BIT(0x040, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_7) - PORT_BIT(0x080, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_8) - PORT_BIT(0x100, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_Q) - PORT_BIT(0x200, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_W) - PORT_BIT(0x400, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_E) - PORT_BIT(0x800, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_R) + PORT_BIT(0x001, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_L) PORT_NAME("Level / Stop") + PORT_BIT(0x002, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_H) PORT_NAME("Hint / New") + PORT_BIT(0x004, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_C) PORT_NAME("Change / Replay") + PORT_BIT(0x008, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_F) PORT_NAME("Forward / Back") + PORT_BIT(0x010, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_V) PORT_NAME("Verify / Setup") + PORT_BIT(0x020, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_G) PORT_NAME("Game / Manual") + PORT_BIT(0x040, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_A) PORT_NAME("Auto / Problem") + PORT_BIT(0x080, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_O) PORT_NAME("Sound / Legal") + PORT_BIT(0x100, IP_ACTIVE_HIGH, IPT_UNUSED) + PORT_BIT(0x200, IP_ACTIVE_HIGH, IPT_UNUSED) + PORT_BIT(0x400, IP_ACTIVE_HIGH, IPT_UNUSED) + PORT_BIT(0x800, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_S) PORT_NAME("Shift") INPUT_PORTS_END @@ -240,7 +258,7 @@ void grandmas_state::grandmas(machine_config &config) // video hardware PWM_DISPLAY(config, m_display).set_size(2, 8); - //config.set_default_layout(layout_grandmaster); + config.set_default_layout(layout_grandmaster); // sound hardware SPEAKER(config, "speaker").front_center(); @@ -268,4 +286,4 @@ ROM_END *******************************************************************************/ // YEAR NAME PARENT COMPAT MACHINE INPUT CLASS INIT COMPANY, FULLNAME, FLAGS -SYST( 1983, grandmas, 0, 0, grandmas, grandmas, grandmas_state, empty_init, "Milton Bradley", "Grand Master", MACHINE_SUPPORTS_SAVE | MACHINE_NOT_WORKING ) +SYST( 1983, grandmas, 0, 0, grandmas, grandmas, grandmas_state, empty_init, "Milton Bradley", "Grand Master (Milton Bradley)", MACHINE_SUPPORTS_SAVE | MACHINE_MECHANICAL | MACHINE_IMPERFECT_CONTROLS | MACHINE_NOT_WORKING ) |
