Code Monkey home page Code Monkey logo

flock's People

Contributors

ciemaar avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

matrixise

flock's Issues

More documentation?

Wasn't there a Pycon talk about this module awhile back? Do you have a reference for it? Any other documentation available?

Shearing should not change the types of the objects in a flock

def find_char(template, stats):
template['ExSeed'] = 0
passes_check = False
while not passes_check:
print('trying')
template.shear()
for sn, sv in stats.items():
stat = template['stats'][sn]
print(f'Checking {sn} {sv} vs {stat}')
if template['stats'][sn] < sv:
print('stepping')
template['ExSeed'] += 1
break
else:
passes_check = True
template['base_stats'] = template['base_stats'].shear()
return template
throws error:


AttributeError Traceback (most recent call last)
in ()
2 beastmaster['level'] = 5
3 beastmaster['bonuses']['racial']={'MA':ma_bonus,'PS':ps_bonus,'PE':pe_bonus}
----> 4 beastmaster = find_char(beastmaster,{'MA': 12, 'PS':10, 'PE':10})
5 beastmaster['Psionics'] = ['Animal Control']
6

in find_char(template, stats)
14 else:
15 passes_check = True
---> 16 template['base_stats'] = template['base_stats'].shear()
17 return template

AttributeError: 'collections.OrderedDict' object has no attribute 'shear'

but any dict added to a flock should have been converted to a flockDict.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.