sandwich

<-- title banner position: x y --> <-- game area position: x y --> <-- 'New' button position: x y --> <-- player image position: x y --> <-- computer image position: x y -->

[Main Features]: This Java applet implements a fully configurable board game which resembles a classic game "reversi" in its spirit. You can convert all your opponent's pieces into yours by sandwiching them from both ends. Whoever owns more pieces at the end wins the game.

[Execution Tips]: Click within one grid cell to place your object. Computer will move next. To start a new game, click on the 'New' button.

[Download and Installation Guide]: Be sure to read our FAQ 1 about license agreement before you use this program. Download and uncompress the file sandwich.zip under your web directory. You can use the configurator in the next section or do it by yourself as follows:
Use a file editor (e.g. WordPad) to open sandwich.html and copy the code segemnt between starting and ending APPLET tags into your desirable HTML file. Supply your own images and type in their filenames. Remember to set the applet width and height big enough to hold all the pieces on the screen.

[Parameters and HTML Configurator]:
Parameter Value Description
width of the applet
height of the applet
regcoderegistration code
loading toggle to display the loading message (0 = do not display)
bgimagebackground image file: fill in "none" if no image
titleimagetitle image file: fill in "none" if no image
titlepos title position: x y
gamepos game area position: x y
newpos 'New' button position: x y
mepos player image position: x y
foepos computer image position: x y
meimageplayer's image
foeimagecomputer's image
movefileaudio filename for a move
errorfileaudio filename for an error
panelbgpanel background color: R G B
panelfgpanel foreground color: R G B
buttonbgbutton background color: R G B
buttonfgbutton foreground color: R G B
winlink '|' seperates gameover URL and target frame
* fill in "none" for URL if you don't want to link to anywhere
* target frame options are as follows
_self = current frame
_parent = parent frame
_top = top-most frame
_blank = new unnamed top-level frame
x = new top-level frame named x
loselink '|' seperates gameover URL and target frame
* fill in "none" for URL if you don't want to link to anywhere
* target frame options are as follows
_self = current frame
_parent = parent frame
_top = top-most frame
_blank = new unnamed top-level frame
x = new top-level frame named x
rownumber of rows for the game board
colnumber of columns for the game board
gridwidthwidth for each grid cell
gridheightheight for each grid cell
NewGameTexttext string for starting a new game
WinTexttext string for a player win
LoseTexttext string for a player loss
TieTexttext string for a tie game



Auto-generated code to be inserted into your HTML page:

P.S. Copy all necessary *.jar, *.class, images (e.g. *.gif or *.jpg), and data files (e.g. *.txt) to your web directory and embed the above code into your own HTML file.



[More Package Info]:
  • File Description:
  • sandwich.html - this file
  • sandwich.jar - sandwich program classes
  • sandwich*.au - sample audio files
  • sandwich*.gif - sample image files