<commit_before>--[[----------------------------------------------
			Vocabulary and logic

----------------------------------------------]]--
voc = { 'piedra', 'papel', 'tijeras', 'lagarto', 'spock' }

who	=
    {
        tijeras = { papel   = 'Tijeras cortan papel',
                    lagarto = 'Tijeras decapitan al lagarto'},

        papel   = { piedra  = 'Papel cubre a piedra',
					spock   = 'Papel desautoriza a Spock'},

        piedra  = { lagarto = 'Piedra aplasta a lagarto',
                    tijeras = 'Piedra aplasta las tijeras'},

        lagarto	= { spock   = 'Lagarto envenena a Spock',
                    papel   = 'Lagarto se come el papel'},

        spock   = { tijeras = 'Spock destroza las tijeras',
                    piedra  = 'Spock vaporiza la piedra'}
	}

--[[----------------------------------------------
			Main activity
----------------------------------------------]]--

math.randomseed( os.time() )

print ( 'Choose one: \n' 	..
            '\tPiedra\n' 	..
            '\tPapel\n' 	..
            '\tTijeras\n'	..
            '\tLagarto\n'	..
            '\tSpock' )

user    = string.lower  ( io.read( '*line' ) )
cpu     = math.random   ( 0, 4 )
cpu     = voc [ cpu ]


if user == cpu then
    print 'Empate'
else
    if who [ cpu ][ user ] ~= nil then
        print ( who [ cpu ] [ user ] )
    else
        print ( who [ user ] [ cpu ] )
    end
end

io.read( "*line" )

--[[----------------------------------------------
	How to read from console:
--------------------------------------------------

	var = io.read ( arg ) -- where arg is:

	"*all"		reads the whole file
	"*line"		reads the next line
	"*number"	reads a number
	num			reads a string with up to num characters
----------------------------------------------]]--

--[[----------------------------------------------
	Random number:
--------------------------------------------------

	math.randomseed	( arg )
	math.random 	( min, max )

	-- arg is the seed

----------------------------------------------]]--<commit_msg>Update main.lua<commit_after>--[[----------------------------------------------
			Vocabulary and logic
----------------------------------------------]]--
voc = { 'piedra', 'papel', 'tijeras', 'lagarto', 'spock' }

who	=
    {
        tijeras = { papel   = 'Tijeras cortan papel',
                    lagarto = 'Tijeras decapitan al lagarto'},

        papel   = { piedra  = 'Papel cubre a piedra',
					spock   = 'Papel desautoriza a Spock'},

        piedra  = { lagarto = 'Piedra aplasta a lagarto',
                    tijeras = 'Piedra aplasta las tijeras'},

        lagarto	= { spock   = 'Lagarto envenena a Spock',
                    papel   = 'Lagarto se come el papel'},

        spock   = { tijeras = 'Spock destroza las tijeras',
                    piedra  = 'Spock vaporiza la piedra'}
	}

--[[----------------------------------------------
			Main activity
----------------------------------------------]]--

math.randomseed( os.time() )

print ( 'Choose one: \n' 	..
            '\tPiedra\n' 	..
            '\tPapel\n' 	..
            '\tTijeras\n'	..
            '\tLagarto\n'	..
            '\tSpock' )

user    = string.lower  ( io.read( '*line' ) )
cpu     = math.random   ( 0, 4 )
cpu     = voc [ cpu ]


if user == cpu then
    print 'Empate'
else
    if who [ cpu ][ user ] ~= nil then
        print ( who [ cpu ] [ user ] )
    else
        print ( who [ user ] [ cpu ] )
    end
end

io.read( "*line" )
{'fraction_non_alphanumeric': 0.30529054640069386, 'fraction_numerical': 0.0011564035848511131, 'mean_word_length': 1.0057971014492753, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6824364', 'n_tokens_mistral': 1099, 'n_tokens_neox': 1075, 'n_words': 278}