A logic game inspired by Chromatron
House Of Mirrors (HoM) is a logic game inspired by Chromatron (from Silver SpaceShip Software).
The game consists of a 2D grid in which several types of objects are found, including detectors and mirrors. The goal is to light up all the detectors using emitted or reflected rays of light. Usually, you can move and rotate the mirrors but not the detectors. In each level, the choice of available objects is limited. Note that there may be more than one solution for each level.
License: free
Requirements: Java Runtime, Scala 2.7.4 (http://www.scala-lang.org)
| Sound: | Play in X: | Play in Console: | Multiplayer: | Network Play: | 3D Acceleration: | Source Available: |
|---|---|---|---|---|---|---|
| no | yes | no | no | no | no | yes |
Submitted by hrj on 2008-03-30.

java.lang.NoSuchMethodError: method scala.Iterator$.range with signature (II)Lscala.Iterator; was not found. at tfd.scala.squib.HasDefaultAttributes$class.checkInitMethodHash(HasDefaultAttributes.scala:85) at tfd.scala.squib.BuiltComponent.checkInitMethodHash(BuiltComponent.scala:25) at tfd.scala.squib.HasAttributes$class.doSetters(HasAttributes.scala:85) at tfd.scala.squib.BuiltComponent.tfd$scala$squib$HasDefaultAttributes$$super$doSetters(BuiltComponent.scala:25) at tfd.scala.squib.HasDefaultAttributes$class.doSetters(HasDefaultAttributes.scala:108) at tfd.scala.squib.BuiltComponent.doSetters(BuiltComponent.scala:25) at tfd.scala.squib.BuiltComponent.processParams(BuiltComponent.scala:72) at tfd.scala.squib.BuiltComponent.apply(BuiltComponent.scala:43) at Main$.main((virtual file):370) at Main.main((virtual file)) at java.lang.reflect.Method.invoke(libgcj.so.7rh) at scala.tools.nsc.ObjectRunner$$anonfun$run$1.apply(ObjectRunner.scala:75) at scala.tools.nsc.ObjectRunner$.withContextClassLoader(ObjectRunner.scala:49) at scala.tools.nsc.ObjectRunner$.run(ObjectRunner.scala:74) at scala.tools.nsc.ScriptRunner$.scala$tools$nsc$ScriptRunner$$runCompiled(ScriptRunner.scala:363) at scala.tools.nsc.ScriptRunner$$anonfun$runScript$1.apply(ScriptRunner.scala:389) at scala.tools.nsc.ScriptRunner$$anonfun$runScript$1.apply(ScriptRunner.scala:388) at scala.tools.nsc.ScriptRunner$.withCompiledScript(ScriptRunner.scala:315) at scala.tools.nsc.ScriptRunner$.runScript(ScriptRunner.scala:388) at scala.tools.nsc.MainGenericRunner$.main(MainGenericRunner.scala:172) at scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala)
Let's discuss it on the HoM mailing list.
Exception in thread "main" java.lang.NoClassDefFoundError: scala.tools.nsc.MainGenericRunner at gnu.java.lang.MainThread.run(libgcj.so.70) Caused by: java.lang.ClassNotFoundException: scala.tools.nsc.MainGenericRunner not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./scala_squib.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}} at java.net.URLClassLoader.findClass(libgcj.so.70) at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.70) at java.lang.ClassLoader.loadClass(libgcj.so.70) at java.lang.ClassLoader.loadClass(libgcj.so.70) at gnu.java.lang.MainThread.run(libgcj.so.70)
(this is why i hate sooo much java, it is very difficult to get it running)
No its not. Your not using Sun's Java, your using gcj, which is, at the moment, not complete - your gonna have issues with anything not built with gcj in mind. Try using a complete java distribution, see if you get anywhere with that? Or, you could see if theres a newer version of gcj that's more complete. GCJ Homepage.
It has been merged with GNU Classpath and supports most of the 1.4 libraries plus some 1.5 additions.
What that means, is you don't have a complete Java 5 environment, and any modern java programmer expects you to have that at minimum (java 6 is current now)
Scala does work with Java 1.4 and so should HoM. The problem with GNU CLASSPATH is that the Java libraries haven't been fully implemented (even for 1.4)
A single link brought me here: Issues
All I did was go to the referenced page, and clicked the "Issues" tab.
Use that squishy thing between your ears, people!
I am the author of HoM. About the java errors; I have heard them from a number of people who have been trying it with gcj and GNU CLASSPATH (the GNU versions of javac and Java API respectively). For historical reasons Fedora, Debian and most other linux distribution's repositories only support these GNU versions of Java. As draeath mentions these are errors due to incomplete implementations of Java and not related to the game.
On most of these distributions, the Sun JRE can be installed separately and I highly recommend it. Some distributions also have plans to support Iced Tea (the open-sourced Java platform from Sun).
This game uses the Java Swing API which, for sure, is not completely implemented in GNU CLASSPATH, and progress on these projects has stalled after Sun open-sourced the Java platform.
cheers, Harshad
java version "1.6.0_05" Java(TM) SE Runtime Environment (build 1.6.0_05-b13) Java HotSpot(TM) Server VM (build 10.0-b19, mixed mode)
(and scala installed as well)
but I can't run the game : java.lang.NoClassDefFoundError: tfd/scala/squib/label$ at Main$.main((virtual file):370) at Main.main((virtual file)) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) etc...
So the problem was because the Debian Scala package (for Sid) was out of date, I've updated the Scala package myself, and the game is running fine now! (The Scala 2.7 which is required is quite new also: released on 06-Mar-2008)
Great game, it reminds me of mirrormagic!
Had the usual probs running it on debian, but not that bad.
Worst problem for me was that it felt sluggish even with dual core 5000+ with dual channel 2GB PC2-6400 (800MHz) RAM. Not bad or unplayable, but for such a small game I expect it to run smoother.
But all in all better than most. Good work
Note that the first time you play the game, it gets compiled. So first startup period is slow. (But the game itself shouldn't be slow). Also, one level in particular is a bit slow, because it has a lot of lasers in it.
Thanks for the feedback.
That level is indeed solvable, though I myself took some time to figure it out, when I returned to it after many days! The solution is surprisingly simple and elegant!