Craft Coding Challenge

A train­ing ground for Craft CMS developers to test and improve their cod­ing skills.

Challenge #10 – How Low Can You Limbo
14 March 2023 Open Twig Intermediate

The Limbo World Cham­pi­on­ships have called you in to optim­ise their score­board for performance.

View The Challenge
Challenge #9 – Roman Numerals
31 August 2020 Closed Twig Intermediate

Giv­en a num­ber, cal­cu­late its cor­res­pond­ing Roman numer­al using a twig macro.

View The Challenge
Challenge #8 – The Big O Problem
30 October 2019 Solved Twig Intermediate

It’s time to get algorith­mic­al” and solve a prob­lem that could eas­ily be imple­men­ted using a poorly per­form­ing algorithm the per­form­ant way.

View The Challenge
Challenge #7 – The Josephus Problem
6 February 2019 Solved Twig Intermediate

In this myth­ic­al-his­tor­ic­al math­em­at­ic­al prob­lem, where you end up stand­ing can be the dif­fer­ence between life and death.

View The Challenge
Challenge #6 – The Chicken or the Egg
8 January 2019 Solved Php Difficult

A com­mon thing you might want to be informed about is when an entry’s status is changed, but it is deceiv­ingly hard to detect. Write a mod­ule to solve this prob­lem in as eleg­ant a way as possible.

View The Challenge
Challenge #5 – Napkin Navigation
24 December 2018 Solved Twig Easy

There’s no time to lose, you must reverse engin­eer a com­plex for­mula to some­thing that any­one can cal­cu­late, even while steer­ing a herd of reindeer through the dark. All you have to work with is a nap­kin and your cunning.

View The Challenge
Challenge #4 – Elementary, my dear Watson
4 December 2018 Solved Twig Intermediate

All of the ele­ments in a Craft site have con­trived a clev­er plan to hide a secret from you. They have left a trail though, which you must fol­low to the end to reveal the secret.

View The Challenge
Challenge #3 – The First Draft
19 November 2018 Solved Php Intermediate

A real-world use case for send­ing email noti­fic­a­tions whenev­er a new entry draft is cre­ated using a Craft mod­ule and an event handler.

View The Challenge
Challenge #2 – 5 Minute Read
12 November 2018 Solved Twig Easy

In this chal­lenge you will design an algorithm that pre­dicts how long a piece of text takes to read.

View The Challenge
Challenge #1 – Putting the Fizz back in your Buzz
5 November 2018 Solved Twig Intermediate

A vari­ation of FizzBuzz, this chal­lenge tests your abil­ity to out­put or style things in dif­fer­ent ways based on a recur­ring index­ing pat­tern using Twig.

View The Challenge