lab_dict
Devious Dictionaries: Cleverness Through Association
 All Classes Namespaces Files Functions Variables
cartalk_puzzle.cpp File Reference

Holds the function which solves a CarTalk puzzler. More...

Functions

vector< std::tuple
< std::string, std::string,
std::string > > 
cartalk_puzzle (PronounceDict d, const string &word_list_fname)
 Solves the CarTalk puzzler described here: http://www.cartalk.com/content/wordplay-anyone. More...
 

Detailed Description

Holds the function which solves a CarTalk puzzler.

Declares the function which solves a CarTalk puzzler.

Author
Matt Joras
Date
Winter 2013

Function Documentation

vector<std::tuple<std::string, std::string, std::string> > cartalk_puzzle ( PronounceDict  d,
const string word_list_fname 
)

Solves the CarTalk puzzler described here: http://www.cartalk.com/content/wordplay-anyone.

Returns
A vector of (string, string, string) tuples Returns an empty vector if no solutions are found.
Parameters
dThe PronounceDict to be used to solve the puzzle.
word_list_fnameThe filename of the word list to be used.