The DNA Sequencer Game challenges players to correctly arrange a randomized DNA sequence using drag-and-drop functionality. The goal is to match the sequence to a target sequence within an allotted time.
- Drag-and-drop DNA bases (A, T, C, G) to arrange them in the correct order.
- Shuffle the sequence if you want to try a different random arrangement.
- A timer adds urgency, giving players a limited time to complete the task.
- HTML: Structure of the game.
- CSS: Styling the game elements.
- JavaScript: Game logic, drag-and-drop functionality, timer, and sequence checking.
- JSON: Storing the target DNA sequence.
- Clone or download this repository to your local machine.
- Open the
index.html
file in your preferred web browser. - The target sequence is displayed at the top. Drag and drop the DNA bases in the random sequence to match the target sequence.
- Use the "Shuffle" button to randomize the sequence again if needed.
- Complete the arrangement within the time limit (60 seconds) to win!
index.html
: The main HTML file containing the structure of the game.styles.css
: The CSS file for styling the game elements.script.js
: The JavaScript file containing the game logic and drag-and-drop functionality.data.json
: A JSON file storing the target DNA sequence.
- Modify the
targetSequence
array in thedata.json
orscript.js
file to create different sequences. - Adjust the timer duration in the
script.js
file by changing the initialtimer
value.
- Add more complex sequences with more DNA bases.
- Include different levels of difficulty.
- Implement scoring based on the time taken to complete the sequence.
This project is open-source and available under the MIT License.