How do I stop people from cheating on my Cody chalenges?

조회 수: 1 (최근 30일)
Michael Eldredge
Michael Eldredge 2017년 12월 3일
댓글: per isakson 2017년 12월 3일
I wrote a Cody problem, but I want to prevent people from using tricks to get a false "best" solution.
For example, many people do something like the following:
regexp '' '(?@"CODE HERE)';
in order to get the size of their program down to something quite small. I want to prevent this. I have seen people using some weird tests to try to block this, but I don't know how they work and when I try to copy them they fail.
  댓글 수: 1
per isakson
per isakson 2017년 12월 3일
Does this count as weird?
str = fileread( which(mfilename) );
assert( isempty( regexp( 'str', 'regexp' ) ) )
btw: I don't know if works on the Cody-server

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Historical Contests에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by