Explore the eight queens problem as a classic programming puzzle, ideally suited for the C language. The code displays output for a variety of different-sized chessboards. Switches are available for brief output, output as chessboard text-mode graphics, and a help screen.
- The eight queens challenge is…a classic programming puzzle,…one that the C language is more than…capable of handling.…No fancy graphics, no extra libraries,…just pure programming proficiency.…Solutions vary, and because C can be an extremely…cryptic language, quite a few of the code samples…you may find, take great pains to be…nearly unreadable.…I suppose there's a charm in that, and…I'll discuss specifics in a later movie.…For now, my approach was to write a…program called N Queens.…
The name comes from the n in number,…meaning that the program can handle…more than one size chess board,…that's because as you'll discover should you…attempt your own solution, once you get a solution…for an 8x8 chessboard, you can easily change the…number of squares, and run the…solution on any size board.…The interface is simple, type N Queens and…the code searches for solutions on a standard…64 square or 8x8 board.…Here you see that 92 solutions are found…which is the proper number.…If you wanna find solutions for a…different size board, specify that value as…
Skill Level Intermediate
1. Summarize the Weather
2. Geolocation with C
3. Eight Queens with C
4. Build a Musical Instrument with C
5. Face Recognition with C
6. Web Dashboards with C
Next steps1m 2s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.