Class SpiegelZahlDialog

java.lang.Object
  extended by SpiegelZahlDialog

public class SpiegelZahlDialog
extends java.lang.Object

Erzeugen einer symmetrische Zahl durch Spiegelung. Spieldialog mittels Konsole/Tastatur.


Constructor Summary
SpiegelZahlDialog()
           
 
Method Summary
static void main(java.lang.String[] args)
          Startet das Spiegelzahlprogramm.
private  void spielen(SpiegelZahl spiegel)
          Dialog zum Spiel, liest Startzahl ein, addiert Spiegel bis Palindrom entstanden ist oder Nutzer abbricht.
 void starten()
          Startet Dialog mittels Konsole/Tastatur, ermoeglich Spielwiederholung.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpiegelZahlDialog

public SpiegelZahlDialog()
Method Detail

starten

public void starten()
Startet Dialog mittels Konsole/Tastatur, ermoeglich Spielwiederholung.


spielen

private void spielen(SpiegelZahl spiegel)
Dialog zum Spiel, liest Startzahl ein, addiert Spiegel bis Palindrom entstanden ist oder Nutzer abbricht.

Parameters:
spiegel - aktuelle Spiel

main

public static void main(java.lang.String[] args)
Startet das Spiegelzahlprogramm.