Code Monkey home page Code Monkey logo

boggle-challenge-base's Introduction

Boggle Challenge

What is Boggle?

From wikipedia: Boggle is a word game ... originally distributed by Parker Brothers. The game is played using a plastic grid of lettered dice, in which players attempt to find words in sequences of adjacent letters.

Boggle has the following rules:

  1. Words must be constructed from letters of sequentially adjacent cubes, where "adjacent" cubes are those horizontally, vertically, and diagonally neighboring.
  2. The same cube may not be used more than once per word.
  3. Words must be at least three letters long.
  4. Words must be unique (i.e. if a word can be found twice in a board, only one of the entries is valid.)
  5. All words must be found in a previously nominated dictionary.
  6. All words must be found within 3 minutes, with time measured by a timer.

(thank you wikipedia, for being a wonderful resource for these rules.)

Example

In the above example we can see these rules in action. For instance the words of (14, 10), at (12, 13), an (13, 8), etc are not valid for the game because they don't have at least three letters. The word tone (12, 14, 11, 15) is not valid because positions 12 and 14 are not adjacent. The word none (11, 14, 11, 15) is not valid because it uses the 11th position twice. There are several valid words like all, tall, fall, lag, gallon, one, etc. lag is interesting in that it can be made 6 different ways, but it is only valid once (6, 5, 4; 6, 1, 4; 6, 1, 2; 6, 5, 2; 9, 5, 2; 9, 5, 4).

Challenge Overview

In order to pass this challenge, you must develop software that will take a string input that represents a Boggle puzzle, and return all valid word entries found in that puzzle within the given time period.

Challenge Rules

Submissions must come in the form of a public git repository, with all contents under the MIT license. The language used can be of your choice, but must be open source, so that it can be run without purchasing a language license. We will review your code for completeness, coding style, etc. Repository will be pulled, built, and run to test the validity of code.

Challenge Details

This repository contains the Dictionary file that is to be used, along with multiple puzzle and solution examples in the puzzles directory. We will use these to test your code for accuracy.

boggle-challenge-base's People

Contributors

undertakingyou avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.