CTFd icon indicating copy to clipboard operation
CTFd copied to clipboard

Is there a way to show or classify challenge difficulty?

Open huornlmj opened this issue 4 years ago • 3 comments
trafficstars

Most CTF's have a difficulty indicator as well as a challenge type. I do not see any option in CTFd to set and display a challenge's difficulty. There is only a category. I see there are tags and topics but they don't seem to work as a way to show difficulty. Is the only solution to simply write the difficulty as text into the challenge description?

huornlmj avatar Nov 11 '21 10:11 huornlmj

Difficulty in CTFs is typically denoted with the value of a challenge. Lower point challenges are easier than higher point challenges.

However, alternatively you can use the tags system. Each challenge button in CTFd will receive a css class like .tag-hard: https://github.com/CTFd/CTFd/blob/7fc05bd4e3bf18606871a0ba6ad11f70e2be77e0/CTFd/themes/core/assets/js/pages/challenges.js#L323-L326. You can use that along with custom CSS to maybe color code challenges or display some text on them.

ColdHeat avatar Nov 14 '21 10:11 ColdHeat

@huornlmj Curious how you've seen it denoted in other CTFs. I haven't seen many with difficulty personally. (Though the CTF I help run uses a "101" tag for introductory challenges.)

Matir avatar Nov 25 '21 04:11 Matir

typically CTFs challenges are created with dynamic scoring system, so it seems that it's reasonable to have a difficulty marker which plays a part in initial sorting. Which in my personal view leads to a wider discussion of challenge reordering. #1499

frankli0324 avatar Nov 28 '21 15:11 frankli0324