20
\$\begingroup\$

We've just gotten the June 2016 Community Challenge going, so it's time to pick one for July.


It's time to choose a for July 2016.

  • Post your challenge as an answer to this question. Feel free to resubmit non-winning ideas from previous months.
  • Vote for those answers which interest you.
  • At the end-of-day on Thursday, June 30th, the top-voted post will become the next challenge.

Once the challenge topic is decided, post your solution as a question on the main site and tag it with . The challenge runs throughout July (but nothing stops you from posting an entry later on).

\$\endgroup\$

3 Answers 3

23
\$\begingroup\$

Monopoly

A Monopoly question was posted recently, and was very well received by the entire Stack Exchange community.

So my proposal is to create a Monopoly game. It seems like it'd be a challenge to implement this game well, but easy enough to get a lot of participants involved. And, as always, bonus points for AI players.

\$\endgroup\$
7
  • 3
    \$\begingroup\$ It's a board game spree! \$\endgroup\$ Commented Jun 13, 2016 at 17:35
  • 1
    \$\begingroup\$ I'm actually really excited about this idea - this will be fun to make happen. \$\endgroup\$ Commented Jun 29, 2016 at 18:09
  • 2
    \$\begingroup\$ For those doing the Monopoly challenge, check out this and this for values / board orientation. \$\endgroup\$
    – Legato
    Commented Jul 9, 2016 at 19:08
  • \$\begingroup\$ AI as in rule based AI, or self learning AI. Or does that refer to my brain being augmented with a wifi dongle and 5TB hard drive? \$\endgroup\$
    – Gareth
    Commented Jul 14, 2016 at 6:21
  • 2
    \$\begingroup\$ Actually I might give this one to my son (12) to try on Scratch. \$\endgroup\$
    – Gareth
    Commented Jul 14, 2016 at 6:26
  • 1
    \$\begingroup\$ @Gareth You can make any kind of AI that you want, whether it's just playing randomly or using state-of-the-art Machine Learning technologies. \$\endgroup\$
    – Simon Forsberg Mod
    Commented Jul 19, 2016 at 9:24
  • \$\begingroup\$ Were there no submissions on this challenge? \$\endgroup\$ Commented Aug 19, 2016 at 18:33
6
\$\begingroup\$

Create an IoT application

Maybe you've been looking for an excuse to finally dust off your Raspberry Pi. Maybe you have an Amazon Echo and you want test out some of its functions, or maybe you just want to finally finish your Arduino project or just write a smartwatch app!

Either way, this is for you and anyone else who may have interest in the hardware side of things / include images/videos where applicable, bonus points for communication on multiple layers / integration across several platforms.

\$\endgroup\$
6
  • 1
    \$\begingroup\$ I really like this idea, but not having any of those thing (I don't own a Raspberry Pi, Amazon Echo, Arduino or a smartwatch) I find it hard to rally here. Is there some ideas that anybody could work on ? \$\endgroup\$
    – Marc-Andre
    Commented Jun 7, 2016 at 20:00
  • \$\begingroup\$ Well, it doesn't necessarily have to use any of those - your computer / phone for communication is fine, however, it is fundamentally a hardware project so something external is inherently necessary. I can make a list of potential projects if people need reference, but I find they can be surprisingly simple, inexpensive and actually useful...an example could be attaching rotors to window blinds so they can be altered remotely. \$\endgroup\$
    – Legato
    Commented Jun 7, 2016 at 20:11
  • 1
    \$\begingroup\$ Simply the fun of working on something smaller than your usual computer can be worth the 30 bucks a Raspberry costs nowadays. They got HDMI, just plug them into your TV or monitor and SSH into them. \$\endgroup\$
    – Mast Mod
    Commented Jun 7, 2016 at 20:33
  • \$\begingroup\$ I really like this idea! However, I don't know if I could use my RPi again because, last time I used it, I shorted a 5v (or 3.3v) pin directly to a GND pin :) \$\endgroup\$
    – SirPython
    Commented Jun 8, 2016 at 0:57
  • \$\begingroup\$ I actually have an Amazon Echo (been sitting in the box since I moved in February), I need to get it back out and do this with it anyway. \$\endgroup\$ Commented Jun 10, 2016 at 6:18
  • \$\begingroup\$ I actually took a look a while ago at implementing a trivia game for the echo, hm \$\endgroup\$ Commented Jun 15, 2016 at 11:26
5
\$\begingroup\$

Cover a board with dominoes

Given an arbitrarily sized and shaped board of squares, find

  1. If there is a way to cover it with dominoes (2x1 squares) such that each square is covered and no two squares overlap.
  2. If there is a way to cover it, the number of different ways it can be covered.

Bonus:

  1. For each domino covering in 2 above, draw/write the covering.
  2. Generate a board with a specified number of domino coverings. Even more bonus: draw/write all the coverings.

Input would be passed as an array of chars (or a string, whatever your program can read from a file passed via stdin) where a square is represented by '■' and an empty space is represented by ' '. The input for bonus two would be an int (or long, if you wanted to allow for very many coverings).

The output should be at least the number of coverings, with 0 being valid to mean there are no coverings. Bonus 1 could vary depending on your language/library. You could use a graphics toolkit to actually draw the board and dominoes, or make some form of ASCII representation of it and write it to a file or stdout. Bonus 2 would work the same; either draw it or write it.

Example input file 1:

■■

Output: 1

Example input file 2:

 ■
■■■

Output: 0

Example input file 3:

■■■■
■■■■

Output: 5

Example input file 4:

  ■
■■■
 ■
 ■
 ■■■
   ■

Output: 1

Example input file 5:

■■■■
■■■■
■■■■

Output: 10

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .