Last time we created and reviewed Simon Says games, and that was a lot of fun.
So, what should we do this time? Feel free to resubmit non-winning ideas from previous rounds, although new ideas are usually more successful.
- Post an answer to this question with your challenge
- Vote for those answers which interest you
- At the end-of-day on Thursday, April 9th, the most-voted post will become the next community-challenge.
Once the challenge topic is decided, you can post questions on the main-site related to the challenge. The idea is to run the challenge all the way through April... although nothing stops you from posting an "entry" later than that :)
-
\$\begingroup\$ The entrys would work well as community wikis... What do you think? \$\endgroup\$Cullub– Cullub2015年04月17日 18:18:39 +00:00Commented Apr 17, 2015 at 18:18
-
\$\begingroup\$ @cullub on the main site? If it didn't mean reviewers get 0 rep for their high-visibility answers, I would agree, but... \$\endgroup\$Mathieu Guindon– Mathieu Guindon2015年04月17日 18:28:48 +00:00Commented Apr 17, 2015 at 18:28
3 Answers 3
Re-Nominating this one, because I think it's a fun little challenge.
Implement a simple calculator
Where the definition of "simple" is whatever you make it - only supports basic arithmetic operators? Fine. It supports scientific notation, exponents and trigonometry? Fine! Takes input from the console? Fine! Toggle between binary, hex, octal and decimal notations? Fine!
The common denominator here, is that you need:
- A way to take user input
- A way to parse/validate user input
- A way to perform the operations in the input
- A way to output the result(s)
Everything else you want to put in, is up to you and the time you can devote to this small project in the limited number of days we have until April is over - be creative!
One small amendment to the original challenge, that was hashed out in the comments.
If your language basically is a calculator (Here's looking at you ruby) or your language supports an Eval()
function, using those features as explicitly excluded.
Challenge entries
- Calculator Snippet CC (JavaScript)
- Basic arithmetic calculator (Python)
- Simple Java calculator using Swing (Java)
- Binary Calculator in Java (Java)
- Hello There Calculator (C#)
- CC C# calculator (C#)
- Yet Another Java GUI Calculator (Java)
- Yet Another Java CLI Calculator (Java)
- Newborn pythonic calculator (Python)
- First 4-function Swing calculator (Java)
- Permutation and combination calculator (Java)
- Calculator implementation (Swift)
- A (late) Simple Calculator (Java)
-
\$\begingroup\$ I'm voting for this one. \$\endgroup\$nhgrif– nhgrif2015年04月02日 23:31:55 +00:00Commented Apr 2, 2015 at 23:31
-
\$\begingroup\$ nooooooooooo \$\endgroup\$Morwenn– Morwenn2015年04月03日 08:06:13 +00:00Commented Apr 3, 2015 at 8:06
-
\$\begingroup\$ @Morwenn??? Not another calculator? \$\endgroup\$RubberDuck– RubberDuck2015年04月03日 09:13:04 +00:00Commented Apr 3, 2015 at 9:13
-
3\$\begingroup\$ @RubberDuck I remember a time when we had 10 calculators a week posted on CR. \$\endgroup\$Morwenn– Morwenn2015年04月03日 09:25:33 +00:00Commented Apr 3, 2015 at 9:25
-
\$\begingroup\$ I must have not been around yet @Morwenn. Sounds like the awful FizzBuzz invasion last summer. \$\endgroup\$RubberDuck– RubberDuck2015年04月03日 09:26:54 +00:00Commented Apr 3, 2015 at 9:26
-
7\$\begingroup\$ @RubberDuck Or the constant linked-list invasion endemic to Code Review. \$\endgroup\$Morwenn– Morwenn2015年04月03日 09:28:56 +00:00Commented Apr 3, 2015 at 9:28
-
\$\begingroup\$ codereview.stackexchange.com/q/67480/47826 \$\endgroup\$JaDogg– JaDogg2015年04月03日 12:35:36 +00:00Commented Apr 3, 2015 at 12:35
-
\$\begingroup\$ Really good idea that can be approached from all skill levels! You got my vote. \$\endgroup\$Evan Bechtol– Evan Bechtol2015年04月10日 19:32:26 +00:00Commented Apr 10, 2015 at 19:32
Resurrect the Stack Eggs!
If you missed them:
stack egg
- User must make a selection each round before a 20 second timer finishes
- Selections influence some metrics
- Some options unlock at later stages in the game
- The number of people playing influences the number of votes needed each round (optional for this challenge?)
-
1\$\begingroup\$ I like this. I bet there will even be an on-site playable version that leverages Stack Snippets! \$\endgroup\$Mathieu Guindon– Mathieu Guindon2015年04月02日 18:41:02 +00:00Commented Apr 2, 2015 at 18:41
-
\$\begingroup\$ I was thinking of that. \$\endgroup\$user34073– user340732015年04月02日 18:41:12 +00:00Commented Apr 2, 2015 at 18:41
-
5\$\begingroup\$ For the record, the real StackEggs source has been published here: github.com/StackExchange/stackegg \$\endgroup\$Simon Forsberg– Simon Forsberg2015年04月02日 19:58:48 +00:00Commented Apr 2, 2015 at 19:58
-
\$\begingroup\$ @SimonAndréForsberg hmm I guess that kinda ruins it eh \$\endgroup\$Mathieu Guindon– Mathieu Guindon2015年04月03日 00:31:15 +00:00Commented Apr 3, 2015 at 0:31
-
4\$\begingroup\$ Why would that ruin it? Not everyone knows C#. Besides, past suggestions have been written hundreds of times before. It wouldn't be hard to find a repo in your language of choice to draw inspiration from. \$\endgroup\$cimmanon– cimmanon2015年04月06日 19:46:23 +00:00Commented Apr 6, 2015 at 19:46
-
\$\begingroup\$ Isn't this the minigame that slowed SE a lot and that anyone could win by not playing it for a while? \$\endgroup\$Ismael Miguel– Ismael Miguel2015年04月06日 22:47:23 +00:00Commented Apr 6, 2015 at 22:47
-
2\$\begingroup\$ we could rags to riches the code? \$\endgroup\$Malachi– Malachi2015年04月09日 16:45:26 +00:00Commented Apr 9, 2015 at 16:45
Implement your own version of the ls
command on UNIX/POSIX systems. Should be able to handle the -l
and -a
command line arguments. You can, or are expected to, use the built in POSIX library functions or system calls.
-
5\$\begingroup\$ this seems a little too localized \$\endgroup\$Malachi– Malachi2015年04月09日 16:44:27 +00:00Commented Apr 9, 2015 at 16:44
-
\$\begingroup\$ Sounds like an exam question I had once. \$\endgroup\$Nick Udell– Nick Udell2015年04月21日 15:38:07 +00:00Commented Apr 21, 2015 at 15:38