is there any way we can make word puzzle using python programming in 2 dimensional way???
i made 'file_name.txt' containing (asdfghklo)
and i need to make some valid words from that txt file (sad,had,gas), which i saved on a 'input_word.txt', can we make our program that read these two files and ??
i got this so far:-
'''Original puzzle:
| a | s | d |
| f | g | h |
| k | l | o |
Valid words in the puzzle are:
sad
had
gas'''
AND IM TRYING TO GET WORD PUZZLE LIKE THIS TO FIND WORD PUZZLE HORIZONTALLY, VERTICALLY, AS WELL AS DIAGONALLY:-
'''Solved puzzle:
| G | S | |
| H | A | D |
| | D | S |'''
PLEASE HELP ME IF THERE IS SOME WAY TO DO SO...
THANK YOU IN ADVANCE