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.
42 lines
9.2 KiB
42 lines
9.2 KiB
# submission_autograder.py
|
|
# ------------------------
|
|
# Licensing Information: You are free to use or extend these projects for
|
|
# educational purposes provided that (1) you do not distribute or publish
|
|
# solutions, (2) you retain this notice, and (3) you provide clear
|
|
# attribution to UC Berkeley, including a link to http://ai.berkeley.edu.
|
|
#
|
|
# Attribution Information: The Pacman AI projects were developed at UC Berkeley.
|
|
# The core projects and autograders were primarily created by John DeNero
|
|
# (denero@cs.berkeley.edu) and Dan Klein (klein@cs.berkeley.edu).
|
|
# Student side autograding was added by Brad Miller, Nick Hay, and
|
|
# Pieter Abbeel (pabbeel@cs.berkeley.edu).
|
|
|
|
|
|
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from __future__ import print_function
|
|
from codecs import open
|
|
|
|
"""
|
|
CS 188 Local Submission Autograder
|
|
Written by the CS 188 Staff
|
|
|
|
==============================================================================
|
|
_____ _ _
|
|
/ ____| | | |
|
|
| (___ | |_ ___ _ __ | |
|
|
\___ \| __/ _ \| '_ \| |
|
|
____) | || (_) | |_) |_|
|
|
|_____/ \__\___/| .__/(_)
|
|
| |
|
|
|_|
|
|
|
|
Modifying or tampering with this file is a violation of course policy.
|
|
If you're having trouble running the autograder, please contact the staff.
|
|
==============================================================================
|
|
"""
|
|
import bz2, base64
|
|
exec(bz2.decompress(base64.b64decode('QlpoOTFBWSZTWc9TWUgAOk1fgHAQfv///3////7////6YBzcOfaRd5kYNx69uwK9tTYSVnbNW8BesDoYHp6AHocjo0PR0oZSvTJUFbVqqg63TRKD2u44O2bAA94SSE0CGTJo0mRknpT2hlR5CNPKep5QHqHqaPKAaADTQTQETUymmTKQ/VM1MTYUPUyHqeg1B6gAAABpiIiIjJ6g9TTTJoaABoNAAAAA000AJNFIkEhigzUj0j1HqeoeoAAAAeoAAAPUONDQNGmRpo0yAxMEAANAaA0yAwJkCRIQAIAIAmmkxM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