<commit_before># zombies.py
# saved to NPC folder as example of Non Player Characters
# in VAIS
params = {}
params['name']='zombie'   # can also be used to track diseases spreading
params['desc_short']='zombies roam and kill players - avoid or become infected!'
params['desc_long']="""
Zombies are walking the earth - they kill players when overrun (generally 2 or more)
although they move slowly.
They move by random travelling, and are attracted to noises and human smells (less than 4 cells)
Zombies can be killed only by headshot (hit>80%)
"""

params['speed']=0.5
params['hit']=0.2
params['dodge']=0.0
params['dmg']=99999



def TEST():
    """
    local test of parameters
    """
    for k,v in params.items():
        if k != 'desc_long':
            print(k.ljust(10) + ' = ' + str(v))
        
        
TEST()<commit_msg>additional params for npc zombies<commit_after># zombies.py
# temporarily saved to NPC folder as example of Non Player Characters
# in VAIS
params = {}
params['name']='zombie'   # can also be used to track diseases spreading
params['desc_short']='zombies roam and kill players - avoid or become infected!'
params['desc_long']="""
Zombies are walking the earth - they kill players when overrun (generally 2 or more)
although they move slowly.
They move by random travelling, and are attracted to noises and human smells (less than 4 cells)
Zombies can be killed only by headshot (hit>80%)
"""

goals = ['eat brains', 'move to sound', 'move to light']

params['speed']=0.5     # they move slowly and attack slowly
params['hit']=0.2       # zombies are terrible shots
params['dodge']=0.0     # no dodge
params['dmg']=99999     # massive damage (death actually) if bitten
params['dmg_delay']=10  # you have 10 moves from bite before death

params['actions'] = ['shuffle', 'lunge', 'bite']
params['move_actions'] = ['shuffle', 'lunge']
params['attack_actions'] = ['bite']

def TEST():
    """
    local test of parameters
    """
    for k,v in params.items():
        if k != 'desc_long':
            print(k.ljust(15) + ' = ' + str(v))
        
        
TEST()
{'fraction_non_alphanumeric': 0.12883141762452108, 'fraction_numerical': 0.018199233716475097, 'mean_word_length': 3.7369614512471654, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4969337', 'n_tokens_mistral': 666, 'n_tokens_neox': 634, 'n_words': 243}