Ir al contenido principal

Cargo Bridge Game Tips for Optimality - Levels 7 to 12

This is the continuation of the Walkthgough, Game Guide and Game Tips for the Cargo Bridge Flash game. The first part of this Game Guide can be found here: http://rehalcon.blogspot.com/2009/05/cargo-bridge-tips-for-most-optimal.html.

The Suspension Bridge

Nowhere in the game levels have I yet found a place to build a proper suspended bridge. Not even a cable-stayed. Nowhere but the chalenge. check out this beautiful 25m all-wood bridge!


Levels 7 to 12

In this new section we will need some more knowledge about building bridges. This time from pghbridges.com. Please check it out to find out about cantilever spans, types of trusses, and other advanced patterns (which will be impossible to replicate in the game but are interesting however).

And don't forget that here is the link to PLAY the original GAME - full screen!

Level 7 - at 45º

Don't feel the inclination. In fact, it will make things easier because the cargo never really places all of it's weight on the bridge. If your bridge is straight enough (or even better slightly convex) and it supports itself, it should work. So we could do an extended truss bridge like this:

...to cover the 13m at 45% span with $730 bucks. But then again a more optimal solution would resemble something like this:

This bridge was $614. It is some sort of arch with extra support from a small web on the upper extreme (sorry about the distorted image).

Note: From here on I havn't got the time to explain each solution so I'm just uploading the images in the meantime.

Level 8: Tricky, very tricky

20.1 meters

$1122







$925







$800





$746








Level 9 - Lame


$608

$608

Level 10 - Finally something cool

$889
$850
Both for $1521

Level 11 - Not so Mean

$849

$549


Level 12 - Weirdo

$479
There!

PLEASE LEVAE YOUR COMMENTS!

Comentarios

Entradas populares de este blog

sqlalchemy ProgrammingError can't adapt type numpy.float64 - Python troubleshooting

Are you getting a

sqlalchemy.exc.ProgrammingError: (ProgrammingError) can't adapt type 'numpy.float64'
???

It's because psycopg (psycopg2) - which is used inherently by SQL Alchemy but if you're just dealing directly with alchemy you might not know this - has no idea how to make the numpy.core.numerictypes.float64 (complete type path: another thing they don't tell you) a string for SQL querying.

Simple solution, add:

# solution by Jorge Orpinel found at rehalcon.blogspotcom
import numpy
from psycopg2.extensions import register_adapter, AsIs
def addapt_numpy_float64(numpy_float64):
return AsIs(numpy_float64)
register_adapter(numpy.float64, addapt_numpy_float64)
somewhere in the program.

For a more complete reference of the problem see http://initd.org/psycopg/docs/advanced.html#adapting-new-python-types-to-sql-syntax

I don't git it.

A lot of people praise git. I liked it at first, now I don't geet it.

Some weird stuff I've found in git, in no particular order:

You can pretend to be anyone. Just change your [user] name and email in .git/config and commit away. As long as when you push you use valid credentials, the commits will be recorded as from someone else. (At least this is possible on GitHub, I know git doesn't implement any specific user access control.)
* I guess you could try to enforce signing commits but as anything besides the basics, that gets pretty complicated on git.Steep learning curve that keeps getting steeper. Ok: git init, git add, git rm -r, git commit -am, git remote add, git fetch, git merge -ff, git push and pull -u of course, git checkout -b, git reset --mixed, git revert HEAD ... Those are just some of the basics... Ever tried to incorporate git subtree pull -P prefix --squash > into your workflow? I have, it's not fun (keep reading).Its super complicated to collaborate…

Dockerize your Django App (for local development on macOS)

I'm writing this guide on how to containerize an existing (simple) Python Django App into Docker for local development since this is how I learned to to develop with Docker, seeing that the existing django images and guides seem to focus on new projects.

For more complete (production-level) stack guides you can refer to Real Python's Django Development with Docker Compose and Machine or transposedmessenger's Deploying Cookiecutter-Django with Docker-Compose.

Pre-requisitesAn existing Django app which you can run locally (directly or in Virtualenv). We will run the local dev server with manage.py runserver.A requirements.txt file with the app dependencies, as is standard for Python projects; including MySQL-python.Working local MySQL server and existing database. (This guide could easily be adapted for other SQL engines such as Postgres.)Install Docker. You can see Docker as a virtual machine running Linux on top of your OS ("the host"), which in turn can run con…