Most elegant and Best solution for the following task

  • Status: Closed
  • Prize: £20
  • Entries Received: 1
  • Winner: neilkakkar

Contest Brief

This is a SAMPLE (so not a live) task provided by an English exam board for 14/15 year olds. I would be interested in awarding the sum for the best solution. By that I mean, the most efficient and the most elegant coding. Classes/Numpy/Pandas MUST NOT be used - a very simple solution using the most basic of skills and functions/modular programming is what we are after. The choice of PythonCarrot will be final! This initial contest is with a view to scouting for talent and the chosen candidate will have the opportunity to be enlisted for plenty of additional opportunities

The task is here: http://www.ocr.org.uk/Images/266758-unit-j276-03-programming-project-task-3-sample-non-exam-assessment.pdf

KEY POINTS and CONSIDERATIONS for AWARD.
1. Please use Python 3 only
2. No graphics - purely a text /console based solution (so no Tkinter, Pygame, etc)
3. The Matrix should be generated on the screen
4. The obstacles and other messages, as mentioned in the task, are loaded from a simple txt file only (csv reader can however, be used)
5. ONLY FUNCTIONS. Please do NOT submit a class based solution.
6. No use of pandas or numpy. The solution should be using the most basic of tools and skills that are taught at secondary school.

*This is a very simple task for which we already have a solution. We're interested however, in alternative solutions and more elegant code.

Recommended Skills

Employer Feedback

“Neilkakkar is a genius! Produced a fantastic piece of Python Code that perfectly met the specification. Made changes and edits as requested as well and was a pleasure to work with. Highly recommended and will most certainly hire again. ”

Profile image pythoncarrot, United Kingdom.

Public Clarification Board

  • pythoncarrot
    Contest Holder
    • 7 years ago

    Hi - the interface looks great. Could you confirm about the obstacles and the external file - how has that been done? If you could send me a video of a demo of the whole thing working, I will know whether to award it or not. Then I can obviously hand over the 'award' for the full python code. Please note, as the spec and my description says, please use only a simple txt files and simple read/write methods (no pandas or numpy).

    • 7 years ago
    1. pythoncarrot
      Contest Holder
      • 7 years ago

      So far - looks great! So hopefully it'll be you I award it to ,,,

      • 7 years ago
    2. neilkakkar
      neilkakkar
      • 7 years ago

      Hi, thank you!
      Obstacles are read in from a simple obstacles.txt file, ( which can be modified ) which also mentions penalty with each obstacle ( +ve or -ve ) . Once a player reaches an obstacle, he is moved by the amount denoted by penalty.
      Double roll has been taken care of, I haven't added a screenshot. ( It is random after all! )
      Thanks, how/where should I send the video?
      Feedback on it is always welcome, if you have something else in mind.

      • 7 years ago

How to get started with contests

  • Post your contest

    Post Your Contest Quick and easy

  • Get tons of entries

    Get Tons of Entries From around the world

  • Award the best entry

    Award the best entry Download the files - Easy!

Post a Contest Now or Join us Today!