Connect with users of Wolfram technologies to learn, solve problems and share ideas
Mark as an Answer
4 Total Likes
Follow this post
Share this post:
How do I use the Wolfram Alpha API for a crossword puzzle game?
10 years ago
I have to program a game in JAVA using Wolfram Alpha API. The game is a crossword puzzle game. A pattern for the game like "_al_ _la_ _" for the player is given. We have to use Wolfram Alpha to retrieve the words and output it in the console. In that way I match the pattern from the user with Wolfram's in order to find out if they are meaningful or not and if more words are available. I already looked at the java binding but I cannot figure out on how to do it. We have to use the "plaintext" format.
So for the AlphaAPISample I put my app id in it and used:
String input = "_al_ _la_ _";
When I run it in NetBeans it does not give me the crosswords though. What do I need to change to retrieve the words from
Thank you so much!
Shenghui Yang, WOLFRAM
10 years ago
@Lisa, before you test the java code, you will need your developer id set up online. Link:
f you do have the app id set up correctly, you can use the query input without spaces. I had
a python thread
about this similar application and I guess java just use its own url functions to do the same thing. Here is a snapshot about result:
Reply to this discussion
in reply to
Community posts can be styled and formatted using the
Tag limit exceeded
Note: Only the first five people you tag will receive an email notification; the other tagged names will appear as links to their profiles.
Add a file to this post
Follow this discussion
Be respectful. Review our
to understand your role and responsibilities.
Wolfram|Alpha Notebook Edition
Volume & Site Licensing
Enterprise Private Cloud
Service Plans Benefits
Wolfram Language Documentation
Wolfram Language Introductory Book
Get Started with Wolfram
Fast Introduction for Programmers
Fast Introduction for Math Students
Webinars & Training
Connected Devices Project
Wolfram Data Drop
Wolfram + Raspberry Pi
. All rights reserved.
Learn how »