This is a simple scissors game (scissors stuffed hammer) that lets you duel with the computer. Your fist is up to you, the computer randomly punches, and the final judge wins.
The following code implements a scissors game that allows you to duel
Green font output:
The code is as follows:
Echo-e "\033[1;32;40mpass\033[0m"Red font output:
The code is as follows:
Echo-e "\033[1;31;40mfail\033[0m"The color of the text terminal can be generated using the ANSI non-normal character sequence.
i) Oracle Overview
(1) Understand some concepts about the databaseData: In the database field, data is the basic unit of storage, including text, pictures, video, audioDatabase: The Data Warehouse, the place where the data is stored, especially the
Output Effect Format control:\033[0m Turn off all properties\033[1m Set High brightness\03[4m Underline\033[5m Flashing\033[7M Reverse Display\033[8m Hidden\033[30m--\033[37m set foreground color\033[40m--\033[47m Set background color
Format
At first glance, the Haier W 12-n is bright silver, the fuselage is the common magnesium alloy material, the metal texture is very strong, the overall modelling is both simple and full of individuality. W12-n's fuselage uses the tilt design, more
Introduction: Welcome to add QQ Exchange 1445696451 Weibo address http://blog.51cto.com/13434336~~~~~~~ Split~~~~~~Database backup and recovery is what the database administrator must master. No system can be protected from physical damage to the
The basic idea of a class is data abstraction and encapsulation.
Data abstraction is a programming technique that relies on interfaces and implements separation. The interface of a class includes the operations that the user can perform, and the
1. Quick Start Terminal: ctr+alt+t2. Terminal font enlargement: ctr+shift+ ' + '3. Terminal font reduction: ctr+ '-'4. LS: View the file information in the current directory4.1 ls BD ABC view two directories at a time5. PWD: View the directory path6.
First, the Java Foundation1. Collection FrameworkA) What are the advantages of generics in A collection?1) HashMap---allow a key to be null, allow multiple values to be NULL, the default capacity is 16, the load factor is 0.75f, and each time it is
I. What is a script (scripts)A command file that installs a logical relationship record, in which the file name can be used to initiate the execution of a command within a script, and the shell script is an explanatory language that requires an
echo display with color, need to use parameter-EThe format is as follows:Echo-e "\033[word background color; text color m string \033[0m"For example:Echo-e "\033[41;37m Tonyzhang \033[0m"Where 41 of the position represents the background, 37 of the
Common instruction ls display file or directory-l list file details L (list)-a lists all files and directories under the current directory, including Hidden A (all) mkdir Create directory -P Create directory, if no parent directory, create p (parent)
1 、-------------------------Linux system Introduction ------------------------------------------------------- Linux unix operating system, is a multi-user, multi-tasking, multi-threaded and multi operating system. It can run the main unix
This week we went on to learn the other features of the Vim editor that we didn't finish last week, first learning to use VIM to edit multiple files, vim files 1 files 2 files 3 .... Then we learned to populate the current file with other files,
The basic features of bash are as follows:First, the alias of the command--alias commandThe alias used to define and display the command, UNALIAS to revoke the defined alias, but note the following:The effect of 1.alias is limited to the lifetime of
In Linux without a desktop environment, the command-line mode terminal operation is inevitably a bit difficult, but learning to use some shortcuts will do more with less. Common shortcut keys under the Linux command line are:Delete:CTRL + D deletes
(1) Command ls--list filesLs-la gives a long list of all the files in the current directory, including a "hidden" file that begins with a periodLS A * lists all files in the current directory that begin with the letter ALs-l *.doc gives all files
A brief introduction to the 1linuxLinux is a free-to-use and free-spread UNIX-like operating system software, is a posi and Unix-based multi-user, multi-tasking, support multi-threaded and multi-CPU of an operating system. Mainly used for servers,
First look at the formatEcho-e "\033[word background color; text color m string \033[0m"ExampleEcho-e "\033[41;36m Font \033[0m"Where 41 of the position represents the background, 36 of the position is the color of the wordNote:1, the word
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.