Skip to content

Commit

Permalink
Rename main branch and references to it.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcCote committed Sep 17, 2022
1 parent d92d14e commit 130e14c
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .azure/pipelines/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# https://docs.microsoft.com/azure/devops/pipelines/languages/python

trigger:
- master
- main

pool:
vmImage: 'ubuntu-latest'
Expand Down
2 changes: 1 addition & 1 deletion .azure/pipelines/prerelease.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Release code in the master branch to PyPi
# Release code in the main branch to PyPi

stages:
- stage: Prerelease_on_PyPi
Expand Down
2 changes: 1 addition & 1 deletion .azure/pipelines/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Release code in the master branch to PyPi
# Release code in the main branch to PyPi

jobs:
- job:
Expand Down
2 changes: 1 addition & 1 deletion .azure/pipelines/security.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Run the Component Governance Detection task

trigger:
- master
- main

pool:
vmImage: 'ubuntu-latest'
Expand Down
2 changes: 1 addition & 1 deletion .azure/pipelines/tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
trigger:
- master
- main

stages:
- stage: Test
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# TextWorld

[![Build Status](https://dev.azure.com/maluuba/TextWorld/_apis/build/status/microsoft.TextWorld?branchName=master)](https://dev.azure.com/maluuba/TextWorld/_build/latest?definitionId=180&branchName=master) [![PyPI version](https://badge.fury.io/py/textworld.svg)](https://badge.fury.io/py/textworld) [![Documentation Status](https://readthedocs.org/projects/textworld/badge/?version=latest)](https://textworld.readthedocs.io/en/stable/?badge=stable) [![Join the chat at https://gitter.im/Microsoft/TextWorld](https://badges.gitter.im/Microsoft/TextWorld.svg)](https://gitter.im/Microsoft/TextWorld?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Build Status](https://dev.azure.com/maluuba/TextWorld/_apis/build/status/microsoft.TextWorld?branchName=main)](https://dev.azure.com/maluuba/TextWorld/_build/latest?definitionId=180&branchName=main) [![PyPI version](https://badge.fury.io/py/textworld.svg)](https://badge.fury.io/py/textworld) [![Documentation Status](https://readthedocs.org/projects/textworld/badge/?version=latest)](https://textworld.readthedocs.io/en/stable/?badge=stable) [![Join the chat at https://gitter.im/Microsoft/TextWorld](https://badges.gitter.im/Microsoft/TextWorld.svg)](https://gitter.im/Microsoft/TextWorld?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

A text-based game generator and extensible sandbox learning environment for training and testing reinforcement learning (RL) agents. Also check out [aka.ms/textworld](https://aka.ms/textworld/) for more info about TextWorld and its creators. Have questions or feedback about TextWorld? Send them to [email protected] or use the Gitter channel listed above.

Expand Down
2 changes: 1 addition & 1 deletion textworld/challenges/tw_cooking/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

The development branch of TextWorld can be installed using

pip install https://github.com/Microsoft/TextWorld/archive/master.zip
pip install https://github.com/Microsoft/TextWorld/archive/main.zip

## Usage

Expand Down
8 changes: 4 additions & 4 deletions textworld/generator/game.py
Original file line number Diff line number Diff line change
Expand Up @@ -1037,12 +1037,12 @@ def winning_policy(self) -> Optional[List[Action]]:
# Some quests don't have triggering policy.
return None

master_quest_tree = ActionDependencyTree(kb=self.game.kb,
element_type=ActionDependencyTreeElement,
trees=trees)
main_quest_tree = ActionDependencyTree(kb=self.game.kb,
element_type=ActionDependencyTreeElement,
trees=trees)

# Discard all "trigger" actions.
return tuple(a for a in master_quest_tree.flatten() if a.name != "trigger")
return tuple(a for a in main_quest_tree.flatten() if a.name != "trigger")

def update(self, action: Action) -> None:
""" Update the state of the game given the provided action.
Expand Down

0 comments on commit 130e14c

Please sign in to comment.