Loading [Contrib]/a11y/accessibility-menu.js
Back
Close

PHP MasterMind

Anonymous
1,445 views

Ordered list

The codemaker must generate a four digit code, keeping the order of digit. It will be convenient to find a programming structure which can do so.

Hints

Here are some hints, but you really should try to find by yourself.

Click to see some hints

To store ordered list of string, items, or number, you can use PHP associative arrays:

Solution

Click to see a way to implement it
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io
codingame x discord
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants