Class WordGame

java.lang.Object
org.jacop.examples.fd.WordGame

public class WordGame extends Object
Inspired by time spent together with Ralph Nemer. It was fun playing together. I also had fun solving this one as CP problem ;).
  • Field Details

    • defaultDictionary

      public static String defaultDictionary
  • Constructor Details

    • WordGame

      public WordGame()
  • Method Details

    • main

      public static void main(String[] args)
    • readDictionaryFor5LetterWords

      public static MDD readDictionaryFor5LetterWords(String file, IntVar[] list)
      It reads a dictionary for 5-letter words and creates an MDD representation of it for use by an extensional constraint.
      Parameters:
      file - filename containing dictionary
      Returns:
      the created MDD for 5-letter words
    • getUserGuessQuality

      private static char[] getUserGuessQuality()
    • getUserGuess

      private static char[] getUserGuess()