Skip to content

For this project, you will write a C program to solve a crossword puzzle. Your program should read, from standard input, a puzzle grid and a set of words and should print the solved puzzle to standard output.

Notifications You must be signed in to change notification settings

SanduniU/CO222_Project_crosswordPuzzle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CO222_Project

CO222-2022- Crossword Puzzle Solver

Group - 31

  • E/19/129 - K. H. Gunawardama
  • E/19/408 - S. J. Ubayasiri

Task:

For this project, you will write a C program to solve a crossword puzzle. Your program should read, from standard input, a puzzle grid and a set of words and should print the solved puzzle to standard output.

Specification:

A partially filled puzzle grid will be given in the input with stars, hashes and letters. Stars indicate blocked cells (cannot be filled). Hashes indicate vacant cells needed to be filled with letters. The inputs will also include the words to be used, one per line, in random order. If your program finds out that filling the crossword puzzle is impossible with the given words, you should print IMPOSSIBLE.

Input:

The grid is followed by an empty line and a list of words, one per line. To finish giving words, an empty line is provided.

Output:

The completed puzzle, the message “IMPOSSIBLE” or “INVALID INPUT”

Files

  • PuzzleStatic
  • PuzzleDynamic
  • test

PuzzelSatic

  • Contain the code which uses the static allocation

PuzzelSatic

  • Contain the code which uses the dynamic allocation

test

  • Only for linux/Ubuntu systems
  • Contains a program to test the code
  • There are 3 testcases and we can get the memory details and time details about each testcase
  • Read the readme file

About

For this project, you will write a C program to solve a crossword puzzle. Your program should read, from standard input, a puzzle grid and a set of words and should print the solved puzzle to standard output.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 99.2%
  • Makefile 0.8%