Skip to content

Instantly share code, notes, and snippets.

@ApexExpress
Last active April 16, 2024 22:25
Show Gist options
  • Save ApexExpress/0eef81ef2d3563e328bfb379795efcfc to your computer and use it in GitHub Desktop.
Save ApexExpress/0eef81ef2d3563e328bfb379795efcfc to your computer and use it in GitHub Desktop.
Language_matrix.Cube.pm change
! @ # $ % ^ & * ( !)
!! !@ !# !$ !% !^ !& !* !( @)
@! @@ @# @$ @% @^ @& @* @( #)
#! #@ ## #$ #% #^ #& #* #( $)
$! $@ $# $$ $% $^ $& $* $( %)
%! %@ %# %$ %% %^ %& %* %( ^)
^! ^@ ^# ^$ ^% ^^ ^& ^* ^( &)
&! &@ &# &$ &% &^ && &* &( *)
*! *@ *# *$ *% *^ *& ** *( ()
(! (@ (# ($ (% (^ (& (* (( !))
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