Tag Archives: games

Make a cannon game in C#

This simple cannon game randomly positions a target house. Then when you click the Shoot button, it gets angle and speed information for the cannon and enables a timer. To keep the graphics and timing simple, the program uses a … Continue reading

Posted in algorithms, animation, games, graphics | Tagged , , , , , , , , , , , , , | Leave a comment

Five hats puzzle solution

If you haven’t read it yet, read the Five hats puzzle. Recall that the warden has three white hats and two black hats. If the first prisoner, Art, saw two black hats, then he would know that he had a … Continue reading

Posted in books, games, puzzles | Tagged , , , , , , , , , , , | Leave a comment

Five hats puzzle

This “hats puzzle” was described on December 26, 2016 on NPR’s Car Talk show. Sadly Tommy died in 2014 and the show was a rebroadcast so this puzzler has probably been used before. My book Interview Puzzles Dissected doesn’t include … Continue reading

Posted in books, games, puzzles | Tagged , , , , , , , , , , | Leave a comment

Sample Puzzles for Interview Puzzles Dissected

Here are some sample puzzles (in PDF format) from my book Interview Puzzles Dissected. Three Birds – Calculate the total number of miles three birds fly while zigzagging between each other during a trip from New York to Philadelphia. We … Continue reading

Posted in books, games, miscellany, puzzles | Tagged , , , , , , , , , , , , , | Leave a comment

Book Errata Page: Interview Puzzles Dissected

This is the errata page for my book Interview Puzzles Dissected, Solving and Understanding Interview Puzzles. If you find mistakes, please post them here in the Leave a Reply box at the bottom of the page. If you have questions, … Continue reading

Posted in books, games, miscellany, puzzles | Tagged , , , , , , , , , , , , , | 1 Comment

Table of Contents: Interview Puzzles Dissected

This is a brief summary of the book’s table of contents. Introduction Explains some background, how to use interview puzzles to get useful information, and conventions used in the book. Chapter 1: Basic Background Provides some background and general tips … Continue reading

Posted in books, games, miscellany | Tagged , , , , , , , , , , , , | 2 Comments

Book Discussion Page: Interview Puzzles Dissected

This is a discussion page for my book Interview Puzzles Dissected, Solving and Understanding Interview Puzzles. Please post questions, thoughts, and suggestions here in the “Leave a Reply” box at the bottom of the page. I will moderate posts and … Continue reading

Posted in books, games, miscellany, puzzles | Tagged , , , , , , , , , , , , | 2 Comments

New Book: Interview Puzzles Dissected, Solving and Understanding Interview Puzzles

I’m pleased to announce my latest book Interview Puzzles Dissected, Solving and Understanding Interview Puzzles. It explains how to solve more than 200 of the most common and interesting interview puzzles in use by high-tech companies. This is my 31st … Continue reading

Posted in books, games, miscellany, puzzles | Tagged , , , , , , , , , , , , | Leave a comment

Solve the equilateral triangles puzzle in C#

This post shows how to solve and display the solutions to the puzzle Puzzle: Find the equilateral triangles in C#. This example uses the following code to define the puzzle’s 25 solutions. // Define the solutions. Solutions = new List<int[]>(); … Continue reading

Posted in algorithms, games, graphics, mathematics | Tagged , , , , , , , , , , , , | Leave a comment

Puzzle: find the equilateral triangles in C#

This is a puzzle that was a while back on National Public Radio (NPR). How many equilateral triangles can you make with corners on the points drawn by the program? For this blog, the puzzle has two parts. First see … Continue reading

Posted in algorithms, games, graphics, mathematics | Tagged , , , , , , , , , , , , | 1 Comment