play with the periodic table and learn it from memory
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
fluxion 8a3305a773 updated screenshot 1 month ago
.gitignore errata in table plus minor edits in code 1 month ago
LICENSE Initial commit 1 month ago
README.md minor edit in README 1 month ago
periodic_table.cpp refined automatic centering, and polished the arrows for bottom blocks 1 month ago
periodic_table.png updated screenshot 1 month ago
pt.dat refined automatic centering, and polished the arrows for bottom blocks 1 month ago
seed.dat updated screenshot 1 month ago

README.md

periodic_table

play with the periodic table and learn it from memory

you can learn the table position, the atomic number, the chemical symbol the names in English, Catalan and Spanish and some clues about the origin of the names

periodic_table

installation

first clone the repo with

git clone https://git.rawtext.club/fluxion/periodic_table

then you need to compile the source

g++ periodic_table.cpp -lncursesw -o periodic_table

use with arguments

with no arguments, you will be prompted for details

you can provide arguments as well

with arguments you directly go to the game

1st argument: language: e/E for English c/C for Catalan s/S for Spanish

2nd argument: number of elements to guess

3rd argument: field to be offered: 1 for atomic number 2 for position in table 3 for name 4 for chemical symbol 5 for clues about the origin of the element's name

4th argument: field to be guessed 1 for atomic number 2 for position in table (use arrows/hjkl and presse space to select) 3 for name 4 for chemical symbol

5th argument: time interval showing whether you correctly guessed

6th argument: allow repetition of elements: 0 for not allowing the same element twice 1 to allow repetitions

7th argument: minimum atomic number to offer

8th argument: maximum atomic number to offer

examples:

no arguments (will be prompted for everything):

periodic_table 

set language (English)

periodic_table e

set language and number of elements to guess:

periodic_table e 5

if you want to set the nth argument, you need to provide all the previous

full argument example:

periodic_table C 10 2 4 1200 0 4 14 

-it sets Catalan names, will ask for 10 elements -will offer the table position and ask for the chemical symbol -will show the result of each choice for 1.2 s -will accept no repetitions of element -will offer elements between 4 and 14

all results will be stored in log.txt

table exploration:

d/D to toggle names clues about the origin of the name (names will be shown in Eng/Spa/Cat)

n/N to show atomic numbers

s/S to show chemical symbols

! to show how the English name would be (UK) pronounced (only for Spaniards)

navigate with arrows or with vi-like hjkl