Last active
April 16, 2024 22:25
-
-
Save ApexExpress/0eef81ef2d3563e328bfb379795efcfc to your computer and use it in GitHub Desktop.
Language_matrix.Cube.pm change
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! @ # $ % ^ & * ( !) | |
!! !@ !# !$ !% !^ !& !* !( @) | |
@! @@ @# @$ @% @^ @& @* @( #) | |
#! #@ ## #$ #% #^ #& #* #( $) | |
$! $@ $# $$ $% $^ $& $* $( %) | |
%! %@ %# %$ %% %^ %& %* %( ^) | |
^! ^@ ^# ^$ ^% ^^ ^& ^* ^( &) | |
&! &@ &# &$ &% &^ && &* &( *) | |
*! *@ *# *$ *% *^ *& ** *( () | |
(! (@ (# ($ (% (^ (& (* (( !)) | |
import random | |
# Define the symbols and combinations | |
symbols = ['!', '@', '#', '$', '%', '^', '&', '*', '(', ')'] | |
combinations = ['!@#$%^&*(', '!!', '!@', '!#', '!$', '!%', '!^', '!&', '!*', '!( @)', | |
'@!', '@@', '@#', '@$', '@%', '@^', '@&', '@*', '@( #)', '#!', '#@', | |
'##', '#$', '#%', '#^', '#&', '#*', '#( $)', '$!', '$@', '$#', '$$', | |
'$%', '$^', '$&', '$*', '$( %)', '%!', '%@', '%#', '%$','%','%^','%&', | |
'%*', '%( ^)', '^!', '^@', '^#', '^$', '^%', '^^', '^&', '^*', '^( &)', | |
'&!', '&@', '&#', '&$', '&%', '&^', '&&', '&*', '&( *)', '*!', '*@', | |
'*#', '*$', '*%', '*^', '*&', '**', '*( ()'] | |
# Select a random combination for the player to guess | |
correct_combination = random.choice(combinations) | |
# Introduction | |
print("Welcome to the Guess the Combination Game!") | |
print("Try to guess the correct combination using the given symbols.") | |
print("Here are the symbols: ", symbols) | |
# Player input | |
player_guess = input("Enter your guess: ") | |
# Check if the guess is correct | |
if player_guess == correct_combination: | |
print("Congratulations! You guessed the correct combination:", correct_combination) | |
else: | |
print("Sorry, your guess is incorrect. The correct combination was:", correct_combination) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment