MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

By now, *Problem 901. Now!* has not been solved without the use of cheats or hacks.

http://www.mathworks.com/matlabcentral/cody/problems/901-now

The goal of this Problem is to progressively design an anticheating test suite by learning from the solutions proposed by solvers of previous problems in the Now! series.

20 correct solutions
98 incorrect solutions

Last solution submitted on Dec 20, 2014

3 players like this problem

2 Comments

Tom
on 2 Jan 2013

This is Solution 184498 rewritten for size.

Frequency Domain
on 23 Jul 2013

I liked the idea of deleting game.p :)

1 player likes this solution

4 Comments

Show
1 older comment

Tom
on 2 Jan 2013

Solution 184561 is a "smaller" implementation of this approach.

Óscar
on 3 Jan 2013

Very well done! That was the solution I was expecting.

Tom
on 3 Jan 2013

Can you examine the test function's mtree to check for dangerous functions, or save function handles to builtins used by the test suite before calling the user code? Aside from making file i/o impossible (e.g. by fixing the sandbox filesystem permissions before calling user code), I don't see how to prevent these kinds of cheats.

Óscar
on 3 Jan 2013

Thank you for your hints! I'll see what to add to "Now! (Anticheating version 2)", I would not like to block file i/o.

8 Comments