@@ -638,7 +638,7 @@ def mood_boosting_mini_games():
638
638
# Apply the button style to the Streamlit app
639
639
st .markdown (button_style , unsafe_allow_html = True )
640
640
641
- # Create a table with 12 game buttons, 4 columns and 3 rows
641
+ # Create a table with multiple game buttons
642
642
st .markdown ('''
643
643
<table>
644
644
<tr>
@@ -660,8 +660,75 @@ def mood_boosting_mini_games():
660
660
<td><a href="https://krunker.io/" target="_blank"><div class="button">Play Krunker.io</div></a></td>
661
661
</tr>
662
662
</table>
663
+ <br>
663
664
''' , unsafe_allow_html = True )
664
665
666
+ #Simon Game Challenge
667
+
668
+ def simon_game_challenge ():
669
+ st .markdown ("## Simon Game Challenge" )
670
+
671
+ # Description, Instructions, and Play Game button in a table format
672
+ st .markdown ("""
673
+ <style>
674
+ .game-table {
675
+ width: 100%;
676
+ border-collapse: collapse;
677
+ margin-top: 20px;
678
+ }
679
+ .game-table th, .game-table td {
680
+ border: 1px solid #ddd;
681
+ padding: 10px;
682
+ text-align: left;
683
+ vertical-align: top;
684
+ }
685
+ .game-table th {
686
+ font-weight: bold;
687
+ }
688
+ .button {
689
+ display: inline-block;
690
+ padding: 10px 20px;
691
+ color: white;
692
+ background-color: white;
693
+ border-radius: 5px;
694
+ text-decoration: none;
695
+ text-align: center;
696
+ }
697
+ .button:hover {
698
+ background-color: black ;
699
+ font-color: red;
700
+ }
701
+ </style>
702
+
703
+ <table class="game-table">
704
+ <tr>
705
+ <th>Description</th>
706
+ <th>Instructions</th>
707
+ <th>Play Game</th>
708
+ </tr>
709
+ <tr>
710
+ <td>
711
+ The Simon Game Challenge tests your memory and focus as you follow an
712
+ increasingly complex sequence of flashing colors and sounds.
713
+ Each level adds a new step to the pattern, which you must repeat perfectly to advance.
714
+ One mistake ends the game.
715
+ </td>
716
+ <td>
717
+ <ul>
718
+ <li><b>Press any key</b> on your keyboard to start the game.</li>
719
+ <li>Watch as <b>one block will light up</b> or make a sound. Click that block to match the sequence.</li>
720
+ <li>The sequence will get longer with each level. Follow it correctly to advance.</li>
721
+ <li>If you make a mistake, the game will end, and your <b>final score</b> will display.</li>
722
+ </ul>
723
+ </td>
724
+ <td style="text-align: center;">
725
+ <a href="https://sanyadureja.github.io/Simon-Game-JavaScript-jQuery/" target="_blank" class="button">
726
+ Simon Game Challenge
727
+ </a>
728
+ </td>
729
+ </tr>
730
+ </table>
731
+ """ , unsafe_allow_html = True )
665
732
666
733
def show_calm_space ():
667
734
st .title ("Calm Space" )
@@ -728,12 +795,16 @@ def show_calm_space():
728
795
guidance = anxiety_management_guide (mood , feeling_description , current_stress_level , recent_events )
729
796
st .write (guidance )
730
797
731
- st .subheader ("Mood-Boosting Mini Games" )
732
- st .write ("Take a break and play a mini-game to reduce your anxiety." )
733
- if st .button ("Start Game " ):
798
+ st .subheader ("Mood-Boosting Games" )
799
+ st .write ("Take a break and play games to reduce your anxiety." )
800
+ if st .button ("Start Mini Games " ):
734
801
st .write ("Launching a quick mood-boosting game..." )
735
802
mood_boosting_mini_games ()
736
803
804
+ #Simon Game Challenge Button
805
+ if st .button ("Simon Game Challenge" ):
806
+ simon_game_challenge ()
807
+
737
808
st .write ("---" )
738
809
soothing_sounds ()
739
810
0 commit comments