Skip to content

ALCooper12/boggle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

boggle-web-service

This is a web service for solving Boggle boards. It allows users to submit a Boggle board via an API call and returns all valid words found on the board.

Features

  • Accepts a Boggle board as input via a POST request
  • Solves the Boggle board and returns all valid words
  • Uses a predefined dictionary to validate words

Getting Started

Prerequisites

Make sure the following are installed first:

  • Go (I used version 1.21)
  • Gin package go get -u github.com/gin-gonic/gin

Running the service

Start the web service by running the following command:

go run main.go

Make POST requests in a different terminal like the following example input and response below (taken from wikapedia):

arianna@Ariannas-MBP % curl -X POST http://localhost:8080/solveBoggleBoard -d '{"board":[["r","h","r","e"],["y","p","c","s"],["w","n","s","n"],["t","e","g","o"]]}' -H "Content-Type: application/json"

{"words":["chypres","cress","cresset","set","song"]}% 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages