Question-and-answer programs involving questions with a well defined correct answer, especially those that track the player's score.
1
vote
1answer
76 views
Simple JavaScript quiz
I'm learning JavaScript and have tried making a simple quiz from scratch.
JS Bin
...
1
vote
0answers
52 views
Game server in Java querying MongoDB for JSON
I was hoping someone would have a look at how I retrieve the questions from the db, parse the JSON and process the results - possibly advise how I could improve efficiency by streamlining my code. I ...
4
votes
1answer
71 views
Basic JavaScript quiz app
I struggled my way through the first quiz and here are the results. Since I have some experience in jQuery I really wanted to use only vanilla JavaScript. I know the code is pretty choppy and there ...
1
vote
1answer
71 views
Math quiz for teachers & students - follow-up
I have been programming a maths quiz that can be used for teachers an I have have been trying to make the code as short as possible so it is easier to understand. If you have seen my previous post you ...
3
votes
2answers
106 views
Math quiz for teachers & students
I have been programming a maths quiz that can be used for teachers and I have have been trying to make the code as short as possible so it is easier to understand.
If there is any way I could make it ...
6
votes
1answer
90 views
Multiple Choice Guessing Game
I've built an app for members of an organization I'm in--the app shows the picture of a member with four multiple choice buttons, and the user then tries to guess the member's name. Pretty simple, ...
8
votes
4answers
2k views
Math quiz in PHP
I coded a math quiz in PHP in which a user selects radio buttons as their answer choices. I retrieve the data of these ten radio buttons using $_POST[]; However, I ...
2
votes
1answer
87 views
True or false quiz logic
I am creating a true or false quiz game and when the user chooses an answer a tick or cross will appear on the screen telling the user whether they are right or wrong and then automatically bring the ...
6
votes
1answer
79 views
Quiz game logic
I spent a long time searching for ways to create a quiz app and to create a way to sort through non-random questions.
The only way I was able to create was to use a series of 3 dictionaries that are ...
8
votes
3answers
100 views
10
votes
2answers
379 views
Classes for Questions and Answers
I made a simple Question "system":
Answer
Stores an answer (string) and a boolean value to check if the answer is correct or not.
...
6
votes
2answers
305 views
Math game with 'hard' and easy questions
In my competition, I was to create a game that asked at least 5 easy questions, and up to ten hard questions, summing fifteen questions. Please review my code, especially how I formatted it with the ...
1
vote
3answers
73 views
Formatting in webpage quiz
Particularly on the CSS page, in the #question_list id, you'll see I've put a transparent border. This is obviously pointless, but without that border, my footer ...
8
votes
3answers
651 views
Driver license program which grades an individual's responses
Are there any ways I can make my program more efficient? My program runs, but are there any things that are unneeded that I included?
The local Driver's License Office has asked you to write a ...
5
votes
1answer
98 views
A Trivia game with SFML
So I've been making a trivia game with SFML and C++ for quite a while now for my school project and I would like to get some constructive criticism, anything helps from best practices to overall ...
6
votes
5answers
563 views
Simple technology quiz
This is my first program that uses more than just boring ol' if/else statements - I made a whole 246 line game that's still a ...
4
votes
4answers
147 views
Maths Q&A game in JavaScript
This used to be university work now I put it our here for review purposes.
Could this be constructed better?
Is there any easier path, performance-wise?
Could this be optimised?
Which features ...
3
votes
1answer
269 views
GUI flashcard program in Java
I'm new to Java and I've written a flashcard program in Java 8 that allows the user to create a collection of flashcards and then test themselves using those flashcards. Please provide any ...
2
votes
0answers
40 views
Correcting a quiz
I wrote this code that's supposed to correct quizzes on a webpage, but it feels bloated and I'm sure there's tons of ways to improve it. Any thoughts?
...
3
votes
1answer
63 views
correctGuess() and incorrectGuess() functions for a quiz
In my JavaScript quiz, I have two functions below which are not DRY. What i want to do is to cut it, so everything below var = text would be used only once not ...
5
votes
2answers
7k views
Algorithm maths quiz + write to a text file
Are there any ways I can clean this code up to make it more user-friendly?
...
8
votes
2answers
2k views
How much is 2 + 2?
I'm currently working on a kind of PHP Quiz about mathematical calculations. We show a mathematical equation, and user need to input his answer.
Currently, this is what I have written:
...
6
votes
2answers
140 views
Saving preferences in localStorage
I am working on a small app to help my kids study their multiplication and addition. And I have various preferences I want to be persisted between visits. What do you think of the below to get the ...
3
votes
1answer
414 views
Simplistic flash card web-app
Feedback I would love to hear: Since this is really my first real JavaScript app, being that I can never find a project I want to actually work on, I want to know how I can improve my JS techniques. ...
2
votes
2answers
3k views
Math equation generator program
I am building this program in Python to generate 10 random arithmetic questions of either multiplication, addition or subtraction and then saves users scores to a .txt file. I just wanted some help ...
5
votes
1answer
267 views
AngularJS trivia game - separating controller from directive
I am creating a trivia game (purely for learning purposes) using AngularJS, NodeJS and MongoDB. My concern is related to the way I am organising the code in AngularJS. So far the game is functional, ...
4
votes
1answer
132 views
A simple “Tamagotchi” like game that uses math questions as food
I wrote a Tamagotchi-like game where to feed the pet, you do math questions instead of just pressing a button. It's persistent, in that on loading, it figures out long it's been since the last save, ...
0
votes
0answers
170 views
Object-oriented JavaScript quiz
I have a quiz app that I wrote with ASP.NET MVC and jQuery, but in an effort to restructure the jQuery code, ended up with the code below:
...
3
votes
1answer
542 views
Quiz form website
I'm trying to get a good grasp on ASP.Net MVC, Razor and RadioButtons, so I tried to make a quiz to test my skills.
I implemented a working quiz form in the following way in Razor (not posting the ...
1
vote
0answers
527 views
Multiple-choice quiz using ReactJS
I'm trying to build a multiple-choice quiz using ReactJS. When the Submit button is clicked, I want to give immediate feedback by changing the text 'input' color (green/red). Right now, it feels like ...
4
votes
1answer
362 views
Simple math facts game
I've made a simple game for testing math facts (think practice for elementary school-age kids). It displays a random addition, subtraction, multiplication, or division problem, and feedback on if the ...
10
votes
5answers
951 views
Human anatomy quiz
My code works fine. I just want to have your insight and opinions about the way I did it. For example, is it easy to maintain? Does it have good architecture and design?
...
6
votes
2answers
254 views
Quiz Engine implementation
I'm trying to find a nice API for a Quiz Engine. This is what I have so far:
Implementation:
...
5
votes
4answers
3k views
Issuing multiple choice tests
I'm working on code for an assignment and I was hoping you all could point me in the right direction.
Basically I had to write a program that will issue out a multiple choice test. I have 4 options, ...
6
votes
1answer
124 views
English-Russian irregular words tester
Could you please offer some suggestions about my self learning project?
It is really hard-coded, but I have no idea what to do next. I'm using angular (only few ...
5
votes
1answer
668 views
Improving models for a Django quiz
I'm working on a little django quiz taking app. Currently I'm making it's models. So far I've got Quiz, Question, ...
7
votes
2answers
128 views
Python script to test music sight reading
I decided to write a program to test music theory, and, while it would've been much easier for me to make it elegant and perfect in Java, I thought I'd take the opportunity to get more familiar with ...
3
votes
1answer
393 views
Tornado quiz app
I am writing a simple quiz app using Tornado and MongoDB. The user authentication is done using Facebook and each user is uniquely identified by their Facebook ID. When a user first creates an ...
6
votes
2answers
387 views
Recording user response times for a quiz
I am working on a simple quiz-type game in which the user basically is asked a series of questions and needs to provide an answer.
I'm trying to find a solid/robust way of recording how long it takes ...
2
votes
1answer
175 views
Vocabulary trainer passing around too much IO/State
I've written a vocabulary trainer which does a lot of passing state around, as I have an ACID-database and a temporary state.
In my experience with Haskell I've learnt that overusing ...
6
votes
2answers
1k views
“Guess the Brand” game
This is my first JavaScript/jQuery project after having been reading and learning for a good few weeks. I am proud I have made something that at least works. However, I'm sure that my code is ...
3
votes
2answers
225 views
Quiz form with random questions
How could I make this code more efficient? Instead of using many if-statements, should I make a function, array, or switch? ...
3
votes
1answer
236 views
JavaScript-based quiz application called Quizz
I've been spending lot of time reading through this site and found plenty of resources that shaped up my code.
I am working on an open source project known as Quizz. It is in a primitive stage as I ...
7
votes
2answers
2k views
“MathChallenge” game for sums with 4 operators
I am trying to start learning Python using Learn Python the Hard Way. I wrote my first game that works as far as tested. It was done as an exercise for this.
Please give me some constructive ...
2
votes
1answer
190 views
Simple four-function math quiz
I'm working on my first web app and would like some feedback on the code I have completed. I asked for a similar code review a few weeks ago but I have since improved my structure and added some user ...
5
votes
3answers
394 views
Simple language quiz
This code is for a simple language quiz. It fetches two words and related audio files via a JSON call, presents the user with an image that matches one of the words, and challenges the user to make ...